I am getting the following error:

sudo ssh -i -v ~/.ssh/shopious.pem ubuntu@

dyld: DYLD_ environment variables being ignored because main executable (/usr/bin/sudo) is setuid or setgid
Warning: Identity file -v not accessible: No such file or directory.
ssh: Could not resolve hostname /Users/myusername/.ssh/shopious.pem: nodename nor servname provided, or not known

How is this possible? I am not sure what I changed, but before it was working using the same exact command.


You have your command line wrong

ssh -v -i ~/.ssh/shopious.pem ubuntu@

should work.

  • -v Verbose mode

  • -i identity file - selects a file from which the identity ... is read.

You are telling ssh to use a file called -v as the identity file and to connect to host ~/.ssh/shopious.pem. You really should take a look at the ssh man page

|improve this answer|||||
  • now I am getting this: gist.github.com/3423268 – user79356 Aug 22 '12 at 7:12
  • @lain have you check my gist? – user79356 Aug 22 '12 at 7:15
  • @user79356: That's a different problem to the one you asked about above and if you search SF you'll find plenty of similar questions to look at. – user9517 Aug 22 '12 at 7:16
  • I have scourged all over SF without any luck – user79356 Aug 22 '12 at 7:17

Not the answer you're looking for? Browse other questions tagged or ask your own question.