Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I just set up a Mac to accept SSH connections. It need both a login and user name like this:

ssh admin@192.168.1.100 -l "My login name"

This works fine, but I can't figure out how to do this using sftp. There doesn't seem to be a -login option to the sftp command. Has anyone ever done this?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

It's somewhat confusing that they use both terms, but login and user name are the same thing. Your ssh call only needs one or the other. I don't use Macs, so I don't know if spaces are allowed in Mac usernames, but you might try ssh "My login name"@192.168.1.100 to verify that you can still log in. Similarly, for sftp, use sftp "My login name"@192.168.1.100.

share|improve this answer
    
Yep, worked as you noted, with quotes around the login name. –  you786 Oct 3 '13 at 0:33

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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