View Single Post
HardDrive HardDrive is offline
Banned
 
Join Date: Apr 2005
Location: Columbus, OH
Posts: 18,240
Linux (or Apple) guys, trying to SSH, won't work

I'm trying to SSH into a Linux box on Amazon Web Services. The public key is in my .ssh directory. I've adjusted the permission as directed by AWS.

When I try and connect, it says the file isn't accessible. Same result if I run the command when I'm in the .ssh directory. It doesn't seem to matter if I include a file path to the key either. Any thoughts on what I could be doing wrong?

jh:~ pelicanboy$ cd .ssh
jh:.ssh pelicanboy$ chmod 400 LuckyServers.pem
jh:.ssh pelicanboy$ ls -l
total 16
-r--------@ 1 pelicanboy staff 1692 Apr 23 11:44 LuckyServers.pem
-rw-r--r-- 1 pelicanboy staff 788 Apr 27 13:25 known_hosts


jh:~ pelicanboy$ ssh -i LuckySevers.pem ec2-user@54.149.XX.XX -v
Warning: Identity file LuckySevers.pem not accessible: No such file or directory.
Permission denied (publickey).
Old 04-27-2015, 02:45 PM
  Pelican Parts Catalog | Tech Articles | Promos & Specials    Reply With Quote #1 (permalink)