Gentoo Archives: gentoo-user

From: Mick <michaelkintzios@××××××××.uk>
To: gentoo-user@l.g.o
Subject: [gentoo-user] ssh and tar combined?
Date: Tue, 27 Dec 2005 23:57:44
Message-Id: dosk5f$gti$1@sea.gmane.org
1 Hi All,
2
3 One day I hope to learn how to use ssh and the associated commands. So far
4 I have been struggling just to copy a file from one box (192.168.0.3) to
5 another (192.168.0.2). This is what I get, but and since I can't find the
6 'copied' file . . . I suspect it fails. I don't understand why:
7 ==================================
8 # ssh root@192.168.0.3
9 Password:
10 root@2[~]# scp -pv root@192.168.0.3:/mnt/sda14/sda10_home.tar .
11 Executing: program /usr/bin/ssh host 192.168.0.3, user root, command scp -v
12 -p -
13 f /mnt/sda14/sda10_home.tar
14 OpenSSH_3.8.1p1 Debian-8.sarge.4, OpenSSL 0.9.7e 25 Oct 2004
15 debug1: Reading configuration data /etc/ssh/ssh_config
16 debug1: Applying options for *
17 debug1: /etc/ssh/ssh_config line 33: Deprecated option
18 "RhostsAuthentication"
19 debug1: /etc/ssh/ssh_config line 37: Deprecated option "FallBackToRsh"
20 debug1: /etc/ssh/ssh_config line 38: Deprecated option "UseRsh"
21 debug1: Connecting to 192.168.0.3 [192.168.0.3] port 22.
22 debug1: Connection established.
23 debug1: read PEM private key done: type DSA
24 debug1: read PEM private key done: type RSA
25 debug1: identity file /root/.ssh/identity type -1
26 debug1: identity file /root/.ssh/id_rsa type -1
27 debug1: identity file /root/.ssh/id_dsa type -1
28 debug1: Remote protocol version 1.99, remote software version
29 OpenSSH_3.8.1p1 De
30 bian-8.sarge.4
31 debug1: match: OpenSSH_3.8.1p1 Debian-8.sarge.4 pat OpenSSH*
32 debug1: Enabling compatibility mode for protocol 2.0
33 debug1: Local version string SSH-2.0-OpenSSH_3.8.1p1 Debian-8.sarge.4
34 debug1: SSH2_MSG_KEXINIT sent
35 debug1: SSH2_MSG_KEXINIT received
36 debug1: kex: server->client aes128-cbc hmac-md5 none
37 debug1: kex: client->server aes128-cbc hmac-md5 none
38 debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
39 debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
40 debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
41 debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
42 debug1: Host '192.168.0.3' is known and matches the RSA host key.
43 debug1: Found key in /root/.ssh/known_hosts:1
44 debug1: ssh_rsa_verify: signature correct
45 debug1: SSH2_MSG_NEWKEYS sent
46 debug1: expecting SSH2_MSG_NEWKEYS
47 debug1: SSH2_MSG_NEWKEYS received
48 debug1: SSH2_MSG_SERVICE_REQUEST sent
49 debug1: SSH2_MSG_SERVICE_ACCEPT received
50 debug1: Authentications that can continue:
51 publickey,password,keyboard-interacti
52 ve
53 debug1: Next authentication method: publickey
54 debug1: Trying private key: /root/.ssh/identity
55 debug1: Trying private key: /root/.ssh/id_rsa
56 debug1: Trying private key: /root/.ssh/id_dsa
57 debug1: Next authentication method: keyboard-interactive
58 Password:
59 debug1: Authentication succeeded (keyboard-interactive).
60 debug1: channel 0: new [client-session]
61 debug1: Entering interactive session.
62 debug1: Sending command: scp -v -p -f /mnt/sda14/sda10_home.tar
63 Sending file modes: C0644 536002560 sda10_home.tar
64 sda10_home.tar 100% 511MB 24.3MB/s 00:21
65 debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
66 debug1: channel 0: free: client-session, nchannels 1
67 debug1: fd 0 clearing O_NONBLOCK
68 debug1: fd 1 clearing O_NONBLOCK
69 debug1: Transferred: stdin 0, stdout 0, stderr 0 bytes in 21.5 seconds
70 debug1: Bytes per second: stdin 0.0, stdout 0.0, stderr 0.0
71 debug1: Exit status 0
72 root@2[~]# exit
73 logout
74 Connection to 192.168.0.3 closed.
75 =========================================
76
77 Ideally I would like to connect and tar | scp the directories/files from one
78 box to another in a single motion. Any advice to help me understand how to
79 make this work, or why the above attempt fails would be much appreciated.
80 --
81 Regards,
82 Mick
83
84 --
85 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] ssh and tar combined? Lares Moreau <lares.moreau@×××××.com>
Re: [gentoo-user] ssh and tar combined? Ow Mun Heng <Ow.Mun.Heng@×××.com>
Re: [gentoo-user] ssh and tar combined? Alexander Skwar <listen@×××××××××××××××.name>