Welcome to the Linux Foundation Forum!

unable to ssh -i LFD459.pem student@WW.XX.YY.ZZ

arun_subbaramu@lf259-ckad-6555:~$ ssh -i LFD459.pem student@WW.XX.YY.ZZ
41
Warning: Identity file LFD459.pem not accessible: No such file or direc
tory.
The authenticity of host 'WW.XX.YY.ZZ1 (WW.XX.YY.ZZ)' can't be estab
lished.
ECDSA key fingerprint is SHA256:zYacXvFcicc5zscyGfWx8mo0LRabEQg52inkH9A
r960.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'WW.XX.YY.ZZ' (ECDSA) to the list of known
hosts.
Permission denied (publickey)

Need to help to setup the cluster.

Any pointers greatly appreciated.

Comments

  • should we generate the .pem file and sudo to student.

  • Hi,
    You may create your own public/private key pair to use as an identification method when logging in to your cloud instances, together with the desired user account.

    Regards,
    -Chris

  • Hi,

    I have created a public/private key pair to use as an identification to log into cloud instances, and also the student user account.

    but i am unable to sudo to student. Like i am little confused not sure if i am missing someting.

    Thanks,
    Arun

  • The student user account was created only to demonstrate the lab exercise for this course. Any user account should be ok, as long as it is configured for sudo.

    Regards,
    -Chris

  • Thanks Chris, was able to sort out the issue.

  • Ryan-Chase
    Ryan-Chase Posts: 12
    edited March 2020

    @chrispokorni said:
    The student user account was created only to demonstrate the lab exercise for this course. Any user account should be ok, as long as it is configured for sudo.

    Regards,
    -Chris

    @chrispokorni When you say that the user account must be configured for sudo do you mean on our local machine or on the cloud instance? Can you give an example of how we should do this? I don't believe this is communicated in the instructions...

    Thanks.

  • Ryan-Chase
    Ryan-Chase Posts: 12
    edited March 2020

    @serewicz
    I followed the instructions to set up the GCE nodes. I created my own ssh key following the process in Creating a new SSH key (Note that I did not run the ssh-keygen command with sudo), then pasted the .pub key into my VM instance under "SSH Keys":

    ...Is there something else I need to do?

    Thanks,
    Ryan

  • @serewicz

    I'm still unable to connect. I'm running the command, ssh -i /Users/ryanchase/.ssh/LFD259-SSH-KEY student@35.225.34.64, and I'm positive that the key I'm referencing is the key associated with the .pub keyfile that I pasted into the SSH Keys field of my GCE instance (I even removed the keys are created new ones...and also deleted everything in ~/.ssh/known_hosts). I'm getting the error, student@35.225.34.64: Permission denied (publickey).

  • Hi @serewicz

    I was able to solve the issue. I believe the issues I was facing were due to the GCP Organization my project was created under which has enforcers in place to restrict incoming traffic. I recreated a different project under a different GCP Org and used the same keys and it's working.

    Thanks for your help.
    Ryan

Categories

Upcoming Training