teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

2

デバッグログの追加

2019/05/16 07:59

投稿

a-chan0000
a-chan0000

スコア15

title CHANGED
File without changes
body CHANGED
@@ -59,4 +59,75 @@
59
59
  c-userのみSSHでもSFTPでも公開鍵認証でログインできるようにしたいです。
60
60
  ただし、パスワード認証は無効にしたいです。
61
61
 
62
- 以上、よろしくお願いいたします。
62
+ 以上、よろしくお願いいたします。
63
+
64
+ **デバッグログの追加**
65
+
66
+ 皆さん、お忙しいところありがとうございます。
67
+ 以下、ログを追記します。
68
+
69
+ sftp -v c-user@hostname
70
+
71
+ ```
72
+ OpenSSH_for_Windows_7.6p1, LibreSSL 2.6.4
73
+ debug1: Connecting to 192.168.100.128 [192.168.100.128] port 22.
74
+ debug1: Connection established.
75
+ debug1: identity file C:\Users\TestTaro/.ssh/id_rsa type 0
76
+ debug1: key_load_public: No such file or directory
77
+ debug1: identity file C:\Users\TestTaro/.ssh/id_rsa-cert type -1
78
+ debug1: key_load_public: No such file or directory
79
+ debug1: identity file C:\Users\TestTaro/.ssh/id_dsa type -1
80
+ debug1: key_load_public: No such file or directory
81
+ debug1: identity file C:\Users\TestTaro/.ssh/id_dsa-cert type -1
82
+ debug1: key_load_public: No such file or directory
83
+ debug1: identity file C:\Users\TestTaro/.ssh/id_ecdsa type -1
84
+ debug1: key_load_public: No such file or directory
85
+ debug1: identity file C:\Users\TestTaro/.ssh/id_ecdsa-cert type -1
86
+ debug1: key_load_public: No such file or directory
87
+ debug1: identity file C:\Users\TestTaro/.ssh/id_ed25519 type -1
88
+ debug1: key_load_public: No such file or directory
89
+ debug1: identity file C:\Users\TestTaro/.ssh/id_ed25519-cert type -1
90
+ debug1: Local version string SSH-2.0-OpenSSH_for_Windows_7.6
91
+ debug1: Remote protocol version 2.0, remote software version OpenSSH_7.4
92
+ debug1: match: OpenSSH_7.4 pat OpenSSH* compat 0x04000000
93
+ debug1: Authenticating to 192.168.100.128:22 as 'c-user'
94
+ debug1: SSH2_MSG_KEXINIT sent
95
+ debug1: SSH2_MSG_KEXINIT received
96
+ debug1: kex: algorithm: curve25519-sha256
97
+ debug1: kex: host key algorithm: rsa-sha2-512
98
+ debug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
99
+ debug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
100
+ debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
101
+ debug1: Server host key: ssh-rsa SHA256:OoA7eSVUMLPCOHyRqEdghTPwIMY4ALeBkss3UL46yeH
102
+ debug1: Host '[192.168.100.128]:22' is known and matches the RSA host key.
103
+ debug1: Found key in C:\Users\TestTaro/.ssh/known_hosts:6
104
+ debug1: rekey after 134217728 blocks
105
+ debug1: SSH2_MSG_NEWKEYS sent
106
+ debug1: expecting SSH2_MSG_NEWKEYS
107
+ debug1: SSH2_MSG_NEWKEYS received
108
+ debug1: rekey after 134217728 blocks
109
+ debug1: pubkey_prepare: ssh_get_authentication_socket: No such file or directory
110
+ debug1: SSH2_MSG_EXT_INFO received
111
+ debug1: kex_input_ext_info: server-sig-algs=<rsa-sha2-256,rsa-sha2-512>
112
+ debug1: SSH2_MSG_SERVICE_ACCEPT received
113
+ debug1: Authentications that can continue: publickey,keyboard-interactive
114
+ debug1: Next authentication method: publickey
115
+ debug1: Offering public key: RSA SHA256:EWO02bWTW3fDAwCyHYdcsWtYKsXtlOLVT6wISNM57tl C:\Users\TestTaro/.ssh/id_rsa
116
+ debug1: Authentications that can continue: publickey,keyboard-interactive
117
+ debug1: Trying private key: C:\Users\TestTaro/.ssh/id_dsa
118
+ debug1: Trying private key: C:\Users\TestTaro/.ssh/id_ecdsa
119
+ debug1: Trying private key: C:\Users\TestTaro/.ssh/id_ed25519
120
+ debug1: Next authentication method: keyboard-interactive
121
+ debug1: read_passphrase: can't open /dev/tty: No such file or directory
122
+ Password:
123
+ debug1: Authentication succeeded (keyboard-interactive).
124
+ Authenticated to 192.168.100.128 ([192.168.100.128]:22).
125
+ debug1: channel 0: new [client-session]
126
+ debug1: Requesting no-more-sessions@openssh.com
127
+ debug1: Entering interactive session.
128
+ debug1: pledge: network
129
+ debug1: client_input_global_request: rtype hostkeys-00@openssh.com want_reply 0
130
+ debug1: Sending subsystem: sftp
131
+ Connected to c-user@192.168.100.128.
132
+
133
+ ```

1

カテゴリタグの追加

2019/05/16 07:59

投稿

a-chan0000
a-chan0000

スコア15

title CHANGED
File without changes
body CHANGED
File without changes