Connect to server using ssh and make password free enviornment


Connect to ssh server:

$ ssh serverip -l username

Enter user password:

username@serverip's password:

change password command:

$ passwd

Password Free environment:
Generate ssh-key:


cd ~/.ssh
ssh-keygen -t rsa

append string in authorized_keys file[1]:

ssh-copy-id -i ~/.ssh/id_rsa.pub remote-host

username@remote-host’s password:
id_rsa.pub      100%     602     0.6KB/s 00:00

Extra Note:
used to copy string in authorized_keys but not append instead override:

 scp ws01_dsa.pub beowulf:~/.ssh/authorized_keys

[1] append keys to ~/.ssh/authorized_keys file
[2] ssh login without password

Advertisements

I am Senior Software Engineer. I love reading, writing, sharing,developing, hiking, movies, trips, mountains, brooks, hills etc.

Tagged with: ,
Posted in ssh, Ubuntu, Uncategorized

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

StackOverFlow
Categories
Archives
%d bloggers like this: