I am new to the Linux operating system. I am using Red Hat Linux.
Can anyone tell me how to use remote services to login to a remote machine without providing the password?
Are there any commands in Linux or do I have to write a 'C' code for it ?
This question came from our site for professional and enthusiast programmers.
You do not have to write code.
First generate your key pair by
Second, use ssh-copy-id to distribute your public key
Note that you need to provide your password when running this command. After that, you can login the remote machine without password.
Here are some explanations for the commands from the manual page:
Look into ssh, which can authenticate a login by using a public-key pair where you store the private part on the local machine and the public part on the remote one.