Pages

Showing posts with label ssh. Show all posts
Showing posts with label ssh. Show all posts

Sunday, December 16, 2012

SSH Tunneling

You can create SSH Tunnels using different kinds of forwarding like
a) Local Port Forwarding, 
b) Remote Port Forwarding,
c) Dynamic Port Forwarding
c) X Forwarding

For a full command syntax check the online man pages for ssh  here  

Tuesday, August 14, 2012

SSH useful commands

I post below some useful SSH commands


Secure Copy File Transfer
SCP copies files between hosts on a network. It uses ssh for data transfer, and uses the same authentication and provides the same security as ssh. Some examples here


From a remote host to  local host
scp -P10022 192.168.2.10:/home/stelios/Desktop/Etherchannel.zip /home/stelios/Desktop/  
 Etherchannel.zip                                            100% 137KB 136.6KB/s  00:00   

More that one file from localhost to remote host
scp -P10022 test01.txt test02.txt 192.168.2.10:/home/stelios/Desktop/  
 test01.txt                                                 100%  0   0.0KB/s  00:00    
 test02.txt                                                 100%  0   0.0KB/s  00:00    

From the local host to a remote host
scp -P10022 /home/stelios/Desktop/Multicast.zip 192.168.2.10:/home/stelios/Desktop/  
 Multicast.zip                                               100%  75MB  1.5MB/s  00:49    

Secure Copy  directory from local to remote host
scp -P10022 -r /home/stelios/Desktop/scp_test 192.168.2.10:/home/stelios/Desktop/  
 WHowe_gns3_vbox.pdf                                       100% 1902KB  1.9MB/s  00:00