Open SSH


1.Provides data encryption services based on PKI – Confidentiality

2.Primarily used to protect the transport layer

3.Encrypted shell sessions ,File transfers

4.Password-less logins

5.Port forwarding – Pseudo-VPN

1.SSH Clients :

/etc/ssh/ssh_config                             # system wide config file for SSH clients

2. scp (Secure Copy)

Secure non interactive copy program

a. Copying files to remote system:

scp host remotehost (general usage)

example: scp sample.txt (: at end of scp command gives file transfer information)

scp sample.txt (this copies the files in dir /root/relativerootdir/)

b. Copying files from remote system using SCP  –   SCP & SFTP uses  

scp remotehost1 host2

example: scp localdir/sample.txt

Enabling the debug option to (scp -v <>)

3. sftp – Secure interactive , FTP-like copy program , Can upload/Download

a. sftp (general usage)

4. /etc/ssh/sshd_config               # System wide SSH server configuration file


ssh-add                    #adds the ssh logins to memory on local system

ssh-agent                #

ssh-copy-id            # Script which permits easy copy of Public key to remote server

ssh-keygen            # Used to generate the public key on local system

a. ssh

b. ssh “command”                      # ssh can also be used to run commands remotely

c. Creating Password-Less Logins using SSH , type RSA

Step 1:Generate key using command on local system “ssh-keygen ”

Step 2:Copy the public key using command to remote system “ssh-copy-id ” #Needs the password of remote system

Step 3:Test the connection without giving the password.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s