SSH Guide
SSH Guide
TROUBLESHOOTING 5
Unprotected private key file (Mac OS X / Linux) 5
Too many authentication failures (Mac OS X / Linux) 5
Remote host identification has changed (Mac OS X / Linux) 5
Windows
Windows does not come with a SSH pre-installed. If you do not already have a SSH client that you use, you
can consider the following:
MobaXterm
A portable SSH client (with a free version!) that’s easy to set up and connect to your instance. You can
download from the Mobatek website at https://mobaxterm.mobatek.net.
After starting the application, you should see the following window:
Start a local terminal, and then modify the below command to SSH into your instance with the ubuntu user:
PuTTY
One of the most popular SSH clients available on Windows. Check out the guide from Amazon on using the
PuTTY client: http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/putty.html
First, make sure that the private key file for the instance is not group or world readable:
Modify the below command to SSH into your instance with the ubuntu user:
You will see the DataStax Academy banner if you are able to log in successfully.
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
It is required that your private key files are NOT accessible by others.
In this case, please modify the file permissions for the private key file and try again.
Authentication failed.
First, double-check that you are using the corresponding private key file for the key pair set for the instance.
If you are sure that you are using the correct private key file, the problem may be that you have too many
keys stored in your ~/.ssh/ directory.
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
This error can occur when you are connecting to an instance with the same IP address of a different instance
you have connected to before.
To fix the error, you can edit your ~/.ssh/known_hosts file to add the correct host key corresponding with the
IP address of the instance you are logging in to.
Alternatively, a more drastic action would be to just completely remove the ~/.ssh/known_hosts file and let it
regenerate once you log into the instance. You should do this only if you understand the implications of
removing the file.