How to login to another computer ?

I have tried this in Cent OS and worked fine.

# Login to another computer

-> ssh root@ipaddress [ example: ssh root@192.168.0.136 ]

# Login to another computer without password

# Step One:

-> ssh-keygen

#Step Two:

-> Press Enter few times.

#Step Three:

-> Check for the file id_rsa and id_rsa.pub if created in /root/.ssh

# Step Four: Copy and paste two files into the destination computer

-> ssh-copy-id root@192.168.0.105

DONE !!!

It will ask for a password one time.

Leave a Comment