Copying files via SSH
- February 9th, 2010
- By mp
- Write comment
Copy with permissions to $USER’s home directory on $HOST
scp -p -r $USER@$HOST: file dir/
Archive for the ‘SSH’ Category
Copy with permissions to $USER’s home directory on $HOST
scp -p -r $USER@$HOST: file dir/
Open a remote shell from localhost to server.internet.de
ssh -q -N -R 1337:localhost:22 server.internet.de -p 22
connect to the remote shell from server.internet.de
ssh localhost -p 1337
create a socks5 socket on server.internet.de
ssh -qND 8089 user@server.internet.de -p 22
use the socks5 socket on localhost via tsocks
cat ~/.tsocks.conf
server = 127.0.0.1 server_port = 8089
using the tunnel
tsocks telnet LAN_IP from server.internet.de