On Tue, Jul 22, 2008 at 4:04 AM, Arnaud Bergeron <[EMAIL PROTECTED]> wrote:

>> debug1: Sending env LANG = en_US.UTF-8
>> debug1: Sending command: scp -v -r -t ~
>>  6:52PM  up 4 days, 56 mins, 0 marksandmans, load averages: 0.11, 0.09, 0.08
>
> Am I the only one noting this line in the output.  I don't think scp
> wants to have load averages.  It think it is a problem with the shell
> non-interactive initialization script.

Yup. I didn't know why the hell was uptime being called, then i looked
at .bashrc. Turns out scp/ssh/bash will run .bashrc and - for some
reason - only execute the first line and then drop dead. I used an
echo instead and had the same result: an echo, no transfer. I renamed
it to .bashrc_ and now scp works...

To, as followup questions: how do i work around this? When i'm using
an xterminal through an ssh session i want my login shell, bash, to
read a login script; but not scp. So i guess .bashrc is not the name
the file should have anyway 'cos only root will read it in regular
xterm sessions, not the regular user...

As for login wait-times, disabling DNS in sshd config did do the trick
but in the long run i'd want it working. Both machines are connected
to a home router that does the DNS and DHCP so it oughta Just Workb";
later post i guess.

Arnaud, thanks for the tip that solved the mistery. All others thanks
for your tips anyway :)
And Giancarlo sorry for misinterpretating you.

-- 
Nuno MagalhC#es

Reply via email to