Open SSH

Features:

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 root@domain.com: (: at end of scp command gives file transfer information)

scp sample.txt root@domain.com:relativerootdir/ (this copies the files in dir /root/relativerootdir/)

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

scp remotehost1 host2

example: scp root@domain.com:/root/sample.txt localdir/sample.txt

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

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

a. sftp user@host.com (general usage)

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

Utilities:

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 user@host.com

b. ssh user@host.com “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  root@host.com ” #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:

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: