質問編集履歴
1
実行結果を追加。
title
CHANGED
File without changes
|
body
CHANGED
@@ -5,8 +5,56 @@
|
|
5
5
|
ためしに、`-4`オプションでIPv4でつなぐようにすると問題なくscp出来ました。
|
6
6
|
IPv6でscpするにはどうすれば良いでしょうか。
|
7
7
|
|
8
|
+
# 実行結果
|
9
|
+
`-v`をつけてscpを実行した結果は以下の通りです。"Sending command"の部分で止まってしまいます。
|
10
|
+
```
|
11
|
+
> scp -pv hoge.example.com:/opt/backup/backup.conf .
|
12
|
+
Executing: program /usr/bin/ssh host hoge.example.com, user (unspecified), command scp -v -p -f /opt/backup/backup.conf
|
13
|
+
OpenSSH_6.7p1 Debian-5+deb8u4, OpenSSL 1.0.1t 3 May 2016
|
14
|
+
debug1: Reading configuration data /root/.ssh/config
|
15
|
+
debug1: /root/.ssh/config line 5: Applying options for hoge.example.com
|
16
|
+
debug1: Reading configuration data /etc/ssh/ssh_config
|
17
|
+
debug1: /etc/ssh/ssh_config line 19: Applying options for *
|
18
|
+
debug1: Connecting to hoge.example.com [x:x:x:x:x:x:x:x] port 10022.
|
19
|
+
debug1: Connection established.
|
20
|
+
debug1: permanently_set_uid: 0/0
|
21
|
+
debug1: key_load_public: No such file or directory
|
22
|
+
debug1: identity file /root/.ssh/hoge_rsa type -1
|
23
|
+
debug1: key_load_public: No such file or directory
|
24
|
+
debug1: identity file /root/.ssh/hoge_rsa-cert type -1
|
25
|
+
debug1: Enabling compatibility mode for protocol 2.0
|
26
|
+
debug1: Local version string SSH-2.0-OpenSSH_6.7p1 Debian-5+deb8u4
|
27
|
+
debug1: Remote protocol version 2.0, remote software version OpenSSH_6.7p1 Debian-5+deb8u4
|
28
|
+
debug1: match: OpenSSH_6.7p1 Debian-5+deb8u4 pat OpenSSH* compat 0x04000000
|
29
|
+
debug1: SSH2_MSG_KEXINIT sent
|
30
|
+
debug1: SSH2_MSG_KEXINIT received
|
31
|
+
debug1: kex: server->client aes128-ctr umac-64-etm@openssh.com none
|
32
|
+
debug1: kex: client->server aes128-ctr umac-64-etm@openssh.com none
|
33
|
+
debug1: sending SSH2_MSG_KEX_ECDH_INIT
|
34
|
+
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
|
35
|
+
debug1: Server host key: ECDSA x:x:x:x:x:x:x:x:x:x:x:x:x:x:x:x
|
36
|
+
debug1: Host '[hoge.example.com]:10022' is known and matches the ECDSA host key.
|
37
|
+
debug1: Found key in /root/.ssh/known_hosts:3
|
38
|
+
debug1: SSH2_MSG_NEWKEYS sent
|
39
|
+
debug1: expecting SSH2_MSG_NEWKEYS
|
40
|
+
debug1: SSH2_MSG_NEWKEYS received
|
41
|
+
debug1: SSH2_MSG_SERVICE_REQUEST sent
|
42
|
+
debug1: SSH2_MSG_SERVICE_ACCEPT received
|
43
|
+
debug1: Authentications that can continue: publickey
|
44
|
+
debug1: Next authentication method: publickey
|
45
|
+
debug1: Trying private key: /root/.ssh/hoge_rsa
|
46
|
+
debug1: Authentication succeeded (publickey).
|
47
|
+
Authenticated to hoge.example.com ([x:x:x:x:x:x:x:x]:10022).
|
48
|
+
debug1: channel 0: new [client-session]
|
49
|
+
debug1: Requesting no-more-sessions@openssh.com
|
50
|
+
debug1: Entering interactive session.
|
51
|
+
debug1: Sending environment.
|
52
|
+
debug1: Sending env LANG = ja_JP.UTF-8
|
53
|
+
debug1: Sending command: scp -v -p -f /opt/backup/backup.conf
|
54
|
+
```
|
55
|
+
|
8
56
|
# 環境
|
9
|
-
```
|
57
|
+
```
|
10
58
|
> uname -a
|
11
59
|
Linux xxxxx 3.16.0-5-amd64 #1 SMP Debian 3.16.51-3+deb8u1 (2018-01-08) x86_64 GNU/Linux
|
12
60
|
> lsb_release -a
|