[BlueOnyx:24578] Re: Issues with jailed sftp on 5210R

Michael Stauber mstauber at blueonyx.it
Wed Dec 9 14:25:25 -05 2020


Hi David,

> sftp <username>@<domain> not working (Cannot initialize SFTP protocol.
> Is the host running an SFTP server?)

Let us concentrate on that for a moment. Please run it again with some
more verbosity by adding the -v flag like this:

sftp -v <username>@<domain>

True "sftp" uses the SSH port, but via the "sftp" protocol and in order
for it to work the same mechanisms that are used for SSH need to be
working. Like you want to login via SSH keys? Then these must be
supplied during the connections. Want username/password authentication?
Then SSH must be configured to allow password auth.

Example:

#> sftp test_user at 5210r1.smd.net
test_user at 5210r1.smd.net: Permission denied
(publickey,gssapi-keyex,gssapi-with-mic).
Connection closed

That's because this box has SSH configured to only allow logins via key
exchange.

-- 
With best regards

Michael Stauber



More information about the Blueonyx mailing list