Re: [SLUG] scp problems

From: Eben King (eben01@verizon.net)
Date: Wed Jun 28 2006 - 00:44:36 EDT


On Tue, 27 Jun 2006, Kwan Lowe wrote:

>
>> I can't scp files into my box. "Out of" works. This puts a crimp on my
>> activities remotely, as you might imagine. I can log in via ssh from the
>> same IP address, no problem. Here are the logs when I'm trying a transfer
>> (it transfers 16k then hangs):
>>
>> ==> auth.log <==
>> Jun 27 18:42:01 pc CRON[4491]: (pam_unix) session opened for user eben by (uid=0)
>> Jun 27 18:42:01 pc CRON[4491]: (pam_unix) session closed for user eben
>> Jun 27 18:42:11 pc sshd[4497]: Accepted password for eben from 131.247.xxx.xxx port
>> 2779 ssh2
>> Jun 27 18:42:11 pc sshd[4519]: (pam_unix) session opened for user eben by (uid=0)
>> Jun 27 18:42:11 pc sshd[4519]: subsystem request for sftp
>>
>> I tried using pscp instead of WinSCP, and using/not using compression, and
>> forcing pscp to sftp or scp -- same deal. What should I look at?
>
>
> Check and make sure that the /etc/ssh/sshd_config has a proper entry for the sftp
> subsystem. By default it's:
>
> Subsystem sftp /usr/libexec/openssh/sftp-server

Yup:

root@pc:~# grep sftp /etc/ssh/sshd_config
Subsystem sftp /usr/lib/openssh/sftp-server
root@pc:~# ls /usr/lib/openssh/sftp-server
/usr/lib/openssh/sftp-server

> It seems that you also need scp in the *system* path when you connect.

root@pc:~# which scp
/usr/bin/scp

Should be.

> If this doesn't resolve, you can put the ssh server into debug mode by
> changing /etc/ssh/sshd_config:
>
>
> LogLevel DEBUG
>
> Restart the SSH server:
>
> service sshd restart
>
> Then try connecting via scp:
>
> scp -vvv foo remotehost:

Crap, works locally. Maybe something in USF's WAN or my router is messing
it up? Last time I had to FTP from the laptop to an intermediary, then
scp fetch from there to home. PITA. I also don't have access to the
intermediary any more. I'll try changing ssh's port to see if that makes
it better.

If I can't make it work, any suggestions for file transfer? If I have to
run an ssh daemon on the laptop under XP, I will, but I'm trying to keep it
as lightly loaded as possible.

-- 
A well-loved and correctly trained domestic canine is generally
slobbery, excitable, noisy, scatalogically obsessed, xenophobic,
pathetically unjudgmental, embarrassingly uninhibited, unreasoningly
devoted, heartbreakingly dependent and wretchedly craven. - PB, AFCA
-----------------------------------------------------------------------
This list is provided as an unmoderated internet service by Networked
Knowledge Systems (NKS).  Views and opinions expressed in messages
posted are those of the author and do not necessarily reflect the
official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 20:17:33 EDT