To disconnect a locked-up ssh session, type
Enter ~ .
References :
$ ssh -p 1234 -oHostKeyAlgorithms=+ssh-dss -oPubKeyAcceptedKeyTypes=+dsa root@192.168.1.1
# vi /etc/ssh/sshd_configAllowUsers user1 user2 testuser# /etc/init.d/ssh restart
$ chmod 700 ~/.ssh
$ chmod 644 ~/.ssh/authorized_keys
$ ssh -i ~/.ssh/the_private_key user@remote.com
// 從公司與自己 server 建立連線 $ ssh -R 12345:localhost:22 user@mydomain.com
// 從 server 就可順著通道回公司 $ ssh localhost -p 12345
// 如果需要 X forward
$ ssh localhost -p 12345 -X
Reference :
Reverse SSH Tunneling | HowtoForge - Linux Howtos and Tutorials
# modprobe fuse