[Bug 1687] scp/sftp is not working when using key based (authorized_keys2) authentication

bugzilla-daemon at bugzilla.mindrot.org bugzilla-daemon at bugzilla.mindrot.org
Mon Dec 21 08:19:03 EST 2009


https://bugzilla.mindrot.org/show_bug.cgi?id=1687

--- Comment #5 from Darren Tucker <dtucker at zip.com.au> 2009-12-21 08:19:03 EST ---
(In reply to comment #4)
> Both methods returns "Must be connected to a terminal.". I guess
> command true needs a terminal to be openned (ssh -t). 

No, it doesn't.  "true" returns no output at all, which proves that
your problem is caused by something on the remote system polluting
stdout.  It's probably either something in the PAM stack, or something
in the shell startup.  Either way, it's not a problem with OpenSSH.

> But how is this connected to scp and sftp? Scp and sftp doesn't work
> when key authentication is neabled. True doesn't work in both cases.

Fix whatever caused ssh'ing to generate spurious output on stdout. 
When you've fixed that, as proven by "ssh yourserver true" generating
no output, scp and sftp will start working.

-- 
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.


More information about the openssh-bugs mailing list