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

質問編集履歴

3

2021/05/09 01:55

投稿

decatail
decatail

スコア43

title CHANGED
File without changes
body CHANGED
@@ -168,7 +168,7 @@
168
168
 
169
169
 
170
170
 
171
- Last login: Sat May 8 21:07:14 2021 from 180.146.47.189
171
+ Last login: Sat May 8 21:07:14 2021 from 1
172
172
  $
173
173
 
174
174
  ```

2

「Mac ~ % ssh -v VPSUSER@IP.ADD.RE.SS」を実行

2021/05/09 01:55

投稿

decatail
decatail

スコア43

title CHANGED
File without changes
body CHANGED
@@ -80,4 +80,95 @@
80
80
  MAC ~ % scp ~/.ssh/id_rsa.pub VPSUSER@IP.ADD.RE.SS:~/.ssh/authorized_keys
81
81
  VPSUSER@IP.ADD.RE.SS's password:
82
82
  id_rsa.pub 100% 582 35.5KB/s 00:00
83
+ ```
84
+ ----
85
+ 追記
86
+ 「Mac ~ % ssh -v VPSUSER@IP.ADD.RE.SS」を実行。
87
+ ```ここに言語を入力
88
+ Mac ~ % ssh -v VPSUSER@IP.ADD.RE.SS
89
+ OpenSSH_8.1p1, LibreSSL 2.7.3
90
+ debug1: Reading configuration data /etc/ssh/ssh_config
91
+ debug1: /etc/ssh/ssh_config line 47: Applying options for *
92
+ debug1: Connecting to IP.ADD.RE.SS [IP.ADD.RE.SS] port 22.
93
+ debug1: Connection established.
94
+ debug1: identity file /Users/user/.ssh/id_rsa type 0
95
+ debug1: identity file /Users/user/.ssh/id_rsa-cert type -1
96
+ debug1: identity file /Users/user/.ssh/id_dsa type -1
97
+ debug1: identity file /Users/user/.ssh/id_dsa-cert type -1
98
+ debug1: identity file /Users/user/.ssh/id_ecdsa type -1
99
+ debug1: identity file /Users/user/.ssh/id_ecdsa-cert type -1
100
+ debug1: identity file /Users/user/.ssh/id_ed25519 type -1
101
+ debug1: identity file /Users/user/.ssh/id_ed25519-cert type -1
102
+ debug1: identity file /Users/user/.ssh/id_xmss type -1
103
+ debug1: identity file /Users/user/.ssh/id_xmss-cert type -1
104
+ debug1: Local version string SSH-2.0-OpenSSH_8.1
105
+ debug1: Remote protocol version 2.0, remote software version OpenSSH_8.2p1 Ubuntu-4ubuntu0.2
106
+ debug1: match: OpenSSH_8.2p1 Ubuntu-4ubuntu0.2 pat OpenSSH* compat 0x04000000
107
+ debug1: Authenticating to IP.ADD.RE.SS:22 as 'VPSUSER'
108
+ debug1: SSH2_MSG_KEXINIT sent
109
+ debug1: SSH2_MSG_KEXINIT received
110
+ debug1: kex: algorithm: curve25519-sha256
111
+ debug1: kex: host key algorithm: ecdsa-sha2-nistp256
112
+ debug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
113
+ debug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
114
+ debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
115
+ debug1: Server host key: ecdsa-sha2-nistp256 SHA256:Rjz8BLk12zzXoBrcG5vZlzT+RWUosls93VYylwFAxk4
116
+ debug1: Host 'IP.ADD.RE.SS' is known and matches the ECDSA host key.
117
+ debug1: Found key in /Users/user/.ssh/known_hosts:1
118
+ debug1: rekey out after 134217728 blocks
119
+ debug1: SSH2_MSG_NEWKEYS sent
120
+ debug1: expecting SSH2_MSG_NEWKEYS
121
+ debug1: SSH2_MSG_NEWKEYS received
122
+ debug1: rekey in after 134217728 blocks
123
+ debug1: Will attempt key: /Users/user/.ssh/id_rsa RSA SHA256:R5LEAQ9xydhROZe3c9la/qbFxFM1UB0DNJQuv6XTjY8
124
+ debug1: Will attempt key: /Users/user/.ssh/id_dsa
125
+ debug1: Will attempt key: /Users/user/.ssh/id_ecdsa
126
+ debug1: Will attempt key: /Users/user/.ssh/id_ed25519
127
+ debug1: Will attempt key: /Users/user/.ssh/id_xmss
128
+ debug1: SSH2_MSG_EXT_INFO received
129
+ debug1: kex_input_ext_info: server-sig-algs=<ssh-ed25519,sk-ssh-ed25519@openssh.com,ssh-rsa,rsa-sha2-256,rsa-sha2-512,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ecdsa-sha2-nistp256@openssh.com>
130
+ debug1: SSH2_MSG_SERVICE_ACCEPT received
131
+ debug1: Authentications that can continue: publickey,password
132
+ debug1: Next authentication method: publickey
133
+ debug1: Offering public key: /Users/user/.ssh/id_rsa RSA SHA256:R5LEAQ9xydhROZe3c9la/qbFxFM1UB0DNJQuv6XTjY8
134
+ debug1: Authentications that can continue: publickey,password
135
+ debug1: Trying private key: /Users/user/.ssh/id_dsa
136
+ debug1: Trying private key: /Users/user/.ssh/id_ecdsa
137
+ debug1: Trying private key: /Users/user/.ssh/id_ed25519
138
+ debug1: Trying private key: /Users/user/.ssh/id_xmss
139
+ debug1: Next authentication method: password
140
+ VPSUSER@IP.ADD.RE.SS's password:
141
+ debug1: Authentication succeeded (password).
142
+ Authenticated to IP.ADD.RE.SS ([IP.ADD.RE.SS]:22).
143
+ debug1: channel 0: new [client-session]
144
+ debug1: Requesting no-more-sessions@openssh.com
145
+ debug1: Entering interactive session.
146
+ debug1: pledge: network
147
+ debug1: client_input_global_request: rtype hostkeys-00@openssh.com want_reply 0
148
+ debug1: Remote: Ignored authorized keys: bad ownership or modes for direcuser /home/VPSUSER
149
+ debug1: Sending environment.
150
+ debug1: Sending env LANG = ja_JP.UTF-8
151
+ Welcome to Ubuntu 20.04.2 LTS (GNU/Linux 5.4.0-72-generic x86_64)
152
+
153
+ * Documentation: https://help.ubuntu.com
154
+ * Management: https://landscape.canonical.com
155
+ * Support: https://ubuntu.com/advantage
156
+
157
+ System information as of 2021年 5月 9日 日曜日 09:00:19 JST
158
+
159
+ System load: 0.08 Processes: 107
160
+ Usage of /: 27.8% of 29.40GB Users logged in: 0
161
+ Memory usage: 39% IPv4 address for eth0: IP.ADD.RE.SS
162
+ Swap usage: 1%
163
+
164
+ * Pure upstream Kubernetes 1.21, smallest, simplest cluster ops!
165
+
166
+ https://microk8s.io/
167
+
168
+
169
+
170
+
171
+ Last login: Sat May 8 21:07:14 2021 from 180.146.47.189
172
+ $
173
+
83
174
  ```

1

パスフレーズの設定はしていない旨を記載

2021/05/09 00:04

投稿

decatail
decatail

スコア43

title CHANGED
File without changes
body CHANGED
@@ -13,7 +13,7 @@
13
13
  ```
14
14
 
15
15
  通常、公開鍵方式での接続の場合は、このようなパスワードは求められないと認識しているのですが、間違いないですよね?。
16
- このあと、パスワードでのログインが出来ないように設定をするつもりですので、何とかしたいと思うのですが、わかる人がいましたらご教授いただければ幸いです。
16
+ このあと、パスワードでのログインが出来ないように設定をするつもりですので、何とかしたいと思うのですが、わかる人がいましたらご教授いただければ幸いです。パスフレーズの設定はしていません。
17
17
 
18
18
  また、Cyberduckでは、SFTPにより、パスワード無しでのログインができました。
19
19
  検索するとknownhostなるものをいじるとよいと、聞いて、上記のknown_hostsを消してみましたが、症状は改善しませんでした。
@@ -45,10 +45,10 @@
45
45
  ```
46
46
  MAC ~ % ssh-keygen -t rsa -v
47
47
  Generating public/private rsa key pair.
48
- Enter file in which to save the key (/Users/user/.ssh/id_rsa):
48
+ Enter file in which to save the key (/Users/user/.ssh/id_rsa): //エンターキーのみ
49
49
  Created directory '/Users/user/.ssh'.
50
- Enter passphrase (empty for no passphrase):
50
+ Enter passphrase (empty for no passphrase): //エンターキーのみ(パスフレーズの設定はしていません)
51
- Enter same passphrase again:
51
+ Enter same passphrase again: //エンターキーのみ
52
52
  Your identification has been saved in /Users/user/.ssh/id_rsa.
53
53
  Your public key has been saved in /Users/user/.ssh/id_rsa.pub.
54
54
  The key fingerprint is: