How Do I Log in to Ubuntu Machine

David Rogers 6 Reputation points
2022-02-15T23:05:14.697+00:00

A while back, I set up an Ubuntu VM.
During that setup, I downloaded a PEM file.
I was not able to log in with it and gave up in frustration.
I thought I'd try again, but now I cannot even find the PEM file.

How do I get from here, to a working SSH session on the VM?

Azure Virtual Machines
Azure Virtual Machines

An Azure service that is used to provision Windows and Linux virtual machines.

0 comments No comments

3 answers

Sort by: Most helpful
  1. David Rogers 6 Reputation points
    2022-02-17T04:23:32.863+00:00

    Thanks @Anonymous ,

    I swapped over to bash shell (git) and it worked. That's good enough.

    Appreciate the help.

    Was this answer helpful?


  2. David Rogers 6 Reputation points
    2022-02-16T04:20:56.543+00:00

    Thanks for the link about resetting the key. That seemed to work.

    Unable to log in with it though. Here is a snippet of some of the commands that I've been running (using Windows subsystem for Linux):

    dave@GOLIATH:/mnt/f/zLoad$ chmod 400 dave.pem
    dave@GOLIATH:/mnt/f/zLoad$ ssh -i ./dave.pem [email protected]
    The authenticity of host '23.99.182.143 (23.99.182.143)' can't be established.
    ECDSA key fingerprint is SHA256:wSrOHkd9jlCIfcAt8lWDbwWPu90RsXhgFA9N2T/2byQ.
    Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
    Warning: Permanently added '23.99.182.143' (ECDSA) to the list of known hosts.
    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    @         WARNING: UNPROTECTED PRIVATE KEY FILE!          @
    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    Permissions 0555 for './dave.pem' are too open.
    It is required that your private key files are NOT accessible by others.
    This private key will be ignored.
    Load key "./dave.pem": bad permissions
    [email protected]: Permission denied (publickey).
    dave@GOLIATH:/mnt/f/zLoad$ ls -la dave.pem
    -r-xr-xr-x 1 dave dave 3243 Feb 16 14:08 dave.pem
    dave@GOLIATH:/mnt/f/zLoad$ chmod 400 dave.pem
    dave@GOLIATH:/mnt/f/zLoad$ ssh -i ./dave.pem [email protected]
    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    @         WARNING: UNPROTECTED PRIVATE KEY FILE!          @
    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    Permissions 0555 for './dave.pem' are too open.
    It is required that your private key files are NOT accessible by others.
    This private key will be ignored.
    Load key "./dave.pem": bad permissions
    [email protected]: Permission denied (publickey).
    dave@GOLIATH:/mnt/f/zLoad$ ls -la dave.pem
    -r-xr-xr-x 1 dave dave 3243 Feb 16 14:08 dave.pem
    dave@GOLIATH:/mnt/f/zLoad$ ssh -i ./dave.pem [email protected]
    [email protected]: Permission denied (publickey).
    dave@GOLIATH:/mnt/f/zLoad$ ssh -i ./dave.pem [email protected]
    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    @         WARNING: UNPROTECTED PRIVATE KEY FILE!          @
    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    Permissions 0555 for './dave.pem' are too open.
    It is required that your private key files are NOT accessible by others.
    This private key will be ignored.
    Load key "./dave.pem": bad permissions
    [email protected]: Permission denied (publickey).
    

    Was this answer helpful?


  3. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.