Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

ssh admin@ -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
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"@ to verify that you can still log in. Similarly, for sftp, use sftp "My login name"@

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .