scp problem
bob 295
icanprogram-sKcZck+fQKg at public.gmane.org
Sun Jul 26 12:00:45 UTC 2009
On Saturday 25 July 2009 03:36 pm, D. Hugh Redelmeier wrote:
> | From: bob 295 <icanprogram-sKcZck+fQKg at public.gmane.org>
> |
> | scp myfile 192.168.1.101:/tmp
>
> Does adding a / at the end make a difference? Probably not, but that
> is what I would have typed.
> scp myfile 192.168.1.101:/tmp/
>
> Is there already a file or directory named myfile in /tmp on the remote
> machine?
>
> | it prompts me for the password and then echos the line I put at the
> | bottom of my .bashrc on the remote box (192.168.1.101) and returns
> | without any copy happening.
> |
> | echo $?
>
> Is this echo on the local side or at the end of the remote's .bashrc?
>
> Is there no diagnostic message printed?
>
> Can you copy it somewhere else (like your home directory)?
>
> | The
> | debug stuff says that the command it is sending is "scp -v -t /tmp" ...
> | that also looks curious to me.
>
> That appears to be normal.
> --
> The Toronto Linux Users Group. Meetings: http://gtalug.org/
> TLUG requests: Linux topics, No HTML, wrap text below 80 columns
> How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists
He's the exact sequence that I tried with this accompanying debug file.
i) I brought up both Mepis boxes.
box1 - 192.168.1.101 (as determined by running ifconfig)
box2 - 192.168.1.103
The .bashrc on box1 contains a line at the end which says:
echo "hi bob from box 1"
ii) since ssh is not running by default I su root and type
/etc/init.d/ssh start
on box 1
iii) on box 2 I verified that ssh was in fact open by typing
ssh 192.168.1.101
and logging in to see the echo prompt above.
I then typed
exit
to come back to the box2 console.
iv) still on box 2 I went to /tmp and ran
date > bob1
to create a file called bob1
v) I then typed
scp -v bob1 192.168.1.101:/tmp/ 1>junk 2>&1
to get the debug file attached.
No file named bob1 appears in /tmp on box1, however, even though I get
prompted for the box1 password and see the .bashrc echo line from box1 on my
screen.
Thanks once again in advance for any help you can offer.
bob
-------------- next part --------------
A non-text attachment was scrubbed...
Name: junk.gz
Type: application/x-gzip
Size: 958 bytes
Desc: not available
URL: <http://gtalug.org/pipermail/legacy/attachments/20090726/d6b211fa/attachment.bin>
More information about the Legacy
mailing list