Sometimes we need to login through ssh without password. SSH just need the client's public key to be copied on its directory. With this key, ssh recognize the client as a good client or authorized client, not bad client or intruder. To do this, first you need to generate a key.
Use this command to generate ssh key :
$ ssh-keygen -t dsa
you can let the passphrase empty.
Then copy your ssh public key to your remote computer. You can use this command :
$ scp ~/.ssh/id_dsa.pub user@remote_computer:.ssh/authorized_keys
Its done, now you can login to your remote computer without being asked for a password.



1 comments:
Great post! The idea of controlling a Linux system remotely with one command is still super relevant today. I started with tricks like these and then realized automating the actual software on those servers is even more powerful. That's when I started exploring advanced spring boot training in Electronic City Bangalore. It's amazing to learn how Spring Boot can help you build apps that manage everything. I've been reading up on the course syllabus at EMEXO Technologies in Electronic City. Thanks for sharing this helpful guide!
Post a Comment