Kamis, 05 Juli 2018

How to setting Keyless SSH key, Generate RSA key Copy RSA

  Tidak ada komentar
Some time as sysadmin we need to setup the host to login using ssh without typing password
Step 1: Generate RSA key
Generate RSA public and private key by running following command line
[[email protected] ~]$ ssh-keygen -t rsa
Step 2: Copy rsa public key to target machine
Copy rsa public key by running follomand line
[maswachid@ccontrol90 ~]$  ssh-copy-id -i ~/.ssh/id_rsa.pub maswachid@192.168.1.32/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "/home/maswachid/.ssh/id_rsa.pub"
The authenticity of host '192.168.1.32 (192.168.1.32)' can't be established.
ECDSA key fingerprint is SHA256:8AEC+g3kNIwoCTf7oMySfVMESepOX+EW/2z7UB2R6AE.
ECDSA key fingerprint is MD5:08:be:f7:78:11:1b:70:7b:64:dc:33:b5:f9:35:68:c1.
Are you sure you want to continue connecting (yes/no)? yes
/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys
[email protected]'s password:

Number of key(s) added: 1

Now try logging into the machine, with:   "ssh '[email protected]'"
and check to make sure that only the key(s) you wanted were added.

you can enter to target machine via ssh without password now

Tidak ada komentar :

Posting Komentar