Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am getting the following error:

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

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.

share|improve this question

closed as not a real question by womble, voretaq7 Nov 11 '12 at 0:37

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

add comment

1 Answer 1

You have your command line wrong

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

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

share|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. –  Iain Aug 22 '12 at 7:16
    
I have scourged all over SF without any luck –  user79356 Aug 22 '12 at 7:17
add comment

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