publicKeyAuth

Prev Next

This command allows the user to perform Public Key Authentication for remote Machine.

Syntax: publicKeyAuth

Sample Output:

IPSManager> publicKeyAuth

[sudo] password for admin:

Please provide with the following inputs.

[Tue Dec 10 13:12:54 IST 2019] : Enter The SCP Server IP : 10.1.1.1

[Tue Dec 10 13:12:54 IST 2019] : Enter SCP Server UserName : admin

[Tue Dec 10 13:12:54 IST 2019] : Checking if .ssh/ already exists.

[Tue Dec 10 13:12:54 IST 2019] : The /home/admin/.ssh already exists!

[Tue Dec 10 13:12:54 IST 2019] : Checking if public key already exists.

[Tue Dec 10 13:12:54 IST 2019] : The /home/admin/.ssh/id_rsa.pub does not exists!

[Tue Dec 10 13:12:54 IST 2019] : Creating a key pair.

Generating public/private rsa key pair.

Your identification has been saved in /home/admin/.ssh/id_rsa.

Your public key has been saved in /home/admin/.ssh/id_rsa.pub.

The key fingerprint is:

SHA256:CshRToUOUNy3n0PJdLoKlEDojS+PEY3xexUWTSlS5xo admin@LinuxManager

The key's randomart image is:

+---[RSA 2048]----+

|.*o.oooo+o. |

|..++o..++o. |

|. O+.ooEo= |

| * *+ ..B |

| =.o .+So |

| o o.o .= |

| = .... . |

| . . . |

| |

+----[SHA256]-----+

[Tue Dec 10 13:12:54 IST 2019] : Successfully created the key pair.

[Tue Dec 10 13:12:54 IST 2019] : Changing permissions of local .ssh/ dir

[Tue Dec 10 13:12:54 IST 2019] : Successfully changed the permissions of the dir/file to 700

[Tue Dec 10 13:12:54 IST 2019] : Transfering public key to remote machine. The operation might ask for password.

/usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "/home/admin/.ssh/id_rsa.pub"

/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed

/usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys

FIPS mode initialized

admin@10.1.1.1's password:

[Tue Dec 10 13:12:54 IST 2019] : Successfully copied the key to 10.1.1.1

[Tue Dec 10 13:12:54 IST 2019] : Modifying .ssh/ related dir/file permissions on the remote machine. The operation might ask for password.

FIPS mode initialized

admin@10.1.1.1's password:

[Tue Dec 10 13:12:54 IST 2019] : Successfully modified the permissions of .ssh/authorized_keys on remote machine.