Wednesday, 5 February 2014

sftp/ssh/scp Linux connect command

SFTP


With Password:

sftp -vv -oPort=22 username@192.168.10.10 -oPassworAuthentication=yes
and type in the password


With private key:

sftp -vv -oIdentityFile=/opt/rh/fuse/jboss-fuse-6.0.0.redhat-024/private_keys/id_rsa_key -oPort=22 username@192.168.10.10



After that standard command line applies like cd, ls, etc.

SSH


login to a box via ssh: ssh -p 8101 user_name@localhost


SCP

// Copy from local to remote locations
scp -i private_key_file ~/Desktop/google.ca.cer user_name@host_name:/home/remote_user/google.ca.cer

No comments:

Post a Comment