Tagged Questions
22
votes
1answer
3k views
Kill an unresponsive ssh session without closing the terminal
Is there a way to disconnect from an SSH session that has become unresponsive without killing the whole terminal? Specifically I'm using konsole, and the machine I'm working with sometimes hangs, but ...
19
votes
3answers
5k views
How can I break away from an SSH session that has crashed?
Many times I have an SSH session that doesn't respond anymore (for example, when I lose internet connection and then reconnect). Ctrl+C, Ctrl+D, Ctrl+Z and a zillion of key presses don't have any ...
12
votes
3answers
3k views
SSH inside SSH fails with “stdin: is not a tty”
I'm trying to connect to machine one with ssh and then connect to another machine two with ssh, but I get this error.
ssh [email protected] 'ssh [email protected]'
stdin: is not a tty
...
6
votes
4answers
392 views
Disable colours on terminal and SSH
My local Linux machine has coloured terminal output like this;
When I SSH to a pfSense/BSD box it changes the colours like this;
Even when I SSH from to a machine that doesn't have a coloured ...
6
votes
3answers
461 views
emacs syntax highlighting fails on my SSH client
I need to connect to a remote server by SSH to edit some documents. When I work at home, I SSH to the remote server using SSH Secure Shell and open emacs, but it doesn't fully highlight documents as I ...
5
votes
2answers
964 views
How to properly run “top” command through SSH?
I have to run top command on one computer being on another.
My targeted PC has IP 192.168.0.81
I was trying to do it: ssh 192.168.0.81 top
But I got this result: top: tcgetattr() failed: Invalid ...
5
votes
2answers
289 views
Prevent SSH client passing TERM environment variable to server?
I'm currently using Fedora 18 gnome-terminal, then started tmux multiplexer in it. After I connected to a CentOS 5 server via ssh command, I find:
ls result has no color
tmux, screen, hexedit, htop ...
5
votes
2answers
672 views
working with filenames in a different encoding over ssh
I'm ssh'ing to a remote system where a different encoding for the filenames (and for the users' locales) has been used. And this causes some problems.
Problems solved by matching the locale settings
...
4
votes
4answers
855 views
Copy text from one terminal into another
I am logged into ssh to a university account from my home computer. Then I find a file that I want to copy onto my local system. So I open a new shell terminal and am about to use scp to copy that ...
4
votes
1answer
2k views
Why don't Page U/Down, Home/End work in less on Solaris over ssh from Ubuntu?
I need to work on a Solaris server over ssh from my Ubuntu (Lucid) laptop. I got Home/End Insert/Delete Page Up/Down working in csh and bash using bindkey and ~/.inputrc, respectively. But I can't ...
4
votes
2answers
1k views
Can I set my local machine's terminal colors to use those of the machine I ssh into?
I have a color scheme that I like for when I'm in a terminal, but I ssh into the machine I work on from multiple sources (locally, PuTTY, my netbook, etc.) and I want to maintain the same color scheme ...
3
votes
1answer
1k views
Real time system info script using ncurses and dialog
I'm trying to create a simple bash script that I can run over ssh that will display some basic system information using ncurses and the dialog command. I've tried two approaches so far:
1) Run dialog ...
3
votes
1answer
388 views
wait for autossh connection to complete
I'm trying to create a script that runs a few commands that take a long time to execute and require a constant connection, but
autossh user@server
wait $! #or wait ${!}
commandA
commandB
doesn't ...
3
votes
0answers
200 views
Emacs ansi-term and term not working well when I ssh into a remote machine
I have the exact same Emacs configuration on a local and remote machine, and when I run M-x ansi-term or M-x term on each of them individually everything works great.
However, if I run any of these ...
2
votes
2answers
69 views
End process from another SSH window
I forgot to use screen and I have a task that has been running for quite some time, and I do not want to lose the saved data. Basically Ctrlc will end the task and save the data if I am on the same ...