Monday, September 15, 2008

[Ubuntu] SSH tunneling

1. SSH login without password

http://linuxproblem.org/art_9.html

2. ssh -l gunhee1 server1 gunhee2@server2

or

ssh -t gunhee1@server1 "ssh gunhee2@server2"

3. scp multiple hops

scp -Cp -o "ProxyCommand ssh gateID@gatehost nc remotehost 22" remoteID@remotehost:matlab.el ./

4.

sshfs gunhee1@server1: ~/mount/

fusermount -u mountpoint

sudo apt-get install sshfs
sudo adduser username fuse
sudo chgrp fuse /dev/fuse
sudo chmod 4755 /bin/fusermount

No comments: