Welcome to the Linux Foundation Forum!

LAB 5.5

Anyone else who had issues with lab 5.*???

I'm trying one by one and so far, with the help of the guides here, resolved till lab 5.5 where for this:
5. Now try some commands withparallel-sshto the local machine:
6. $ parallel-ssh -i -h ̃/ip-list date
7. $ parallel-ssh -i -h ̃/ip-list sudo timedatectl
8. $ parallel-ssh -i -h ̃/ip-list sudo hostnamectl

I get error:

[email protected]:~$ parallel-ssh -i -h ~/ip-list sudo timedatectl
[1] 01:50:43 [FAILURE] 127.0.0.1 Exited with error code 255
Stderr: Enter passphrase for key '/home/cloud-engineer-student/.ssh/id_rsa':
pssh error: SSH requested a password. Please create SSH keys or use
the -A option to provide a password.
[email protected]: Permission denied (publickey,password).
[2] 01:50:43 [FAILURE] localhost Exited with error code 255
Stderr: Enter passphrase for key '/home/cloud-engineer-student/.ssh/id_rsa':
pssh error: SSH requested a password. Please create SSH keys or use
the -A option to provide a password.
[email protected]: Permission denied (publickey,password).
[3] 01:50:43 [FAILURE] [email protected] Exited with error code 255
Stderr: Enter passphrase for key '/home/cloud-engineer-student/.ssh/id_rsa':
pssh error: SSH requested a password. Please create SSH keys or use
the -A option to provide a password.
[email protected]: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).

Is there any other file (perhaps config) that I need to alter with the correct parameters etc.??

Comments

  • rranay
    rranay Posts: 6

    Try generating ssh key without having to input the passphrase. Then copy these to the remote hosts via ssh-copy-id.

  • pssh error: SSH requested a password. Please create SSH keys or use the -A option to provide a password.

    As rranay suggested, remove the need for passwords via ssh-keygen then ssh-copy-id to target machines.

    Or, as parallel-ssh suggested, re-run it while including the -A option to get prompted for passwords (a less-optimal solution).

  • lee42x
    lee42x Posts: 317

    Using passphrase on the ssh keys protects someone from using your keys. Without the pass phrase, your key could be copied to another system and used if permissions allow it. Best practice is to use passphrases, however you will have to enter the passphrase to use the key.

    In a lab environment it is common practice to not use passphrase on keys. Many applications have to be informed you are using passphrases .

    The man pages ssh-agent and ssh-add may be of interest as well.

    Regards Lee

Categories

Upcoming Training