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/ remote-host

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

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

 scp beowulf:~/.ssh/authorized_keys

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


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: 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

%d bloggers like this: