Tagged Questions
25
votes
3answers
8k 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 ...
24
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 ...
14
votes
3answers
6k 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
...
8
votes
2answers
191 views
Can I unfreeze bash or vim when SSH session freezes from timeout? [duplicate]
When my SSH session times out, the whole terminal freezes.
Is there any way to break out of that connection? CTRL+C doesn't cut it.
6
votes
1answer
243 views
Why ssh does not turn terminal title back?
As you might know, when you ssh to a server from an X terminal (rxvt, gnome-terminal...), ssh changes the window title to reflect user@host, but it does not change it back.
There are many tips how to ...
6
votes
4answers
896 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
2answers
931 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
...
6
votes
3answers
571 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
2k 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
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 ...
5
votes
2answers
1k 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 ...
4
votes
4answers
977 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
34 views
Idle terminal safe character
I'm using iTerm2 on a Mac to do Linux work. In order to avoid losing terminal connections, I turned on "When idle, sent Ascii code". The default is 0. This works like a charm to keep connections ...
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
2answers
72 views
List all connected SSH sessions?
I just SSH'd into root, and then SSH'd again into root on the same machine. So I have two windows open both SSH'd into root on my remote machine.
From the shell, how can I see a list of these two ...