投稿

ラベル(公開鍵認証方式)が付いた投稿を表示しています

[memo] macOS High Sierra にアップデートした後、外部のVPS に公開鍵認証方式で ssh接続できなくなった Permission denied (publickey,gssapi-keyex,gssapi-with-mic)

以下のエラーで接続できない。 [zunermuka ~]$ ssh user0001@example.jp -p xxyyzz /Users/zunermuka/.ssh/config line X: Unsupported option "rsaauthentication" Enter passphrase for key '/Users/zunermuka/.ssh/id_rsa': Permission denied (publickey,gssapi-keyex,gssapi-with-mic). [zunermuka ~]$ vim /Users/zunermuka/.ssh/config 該当行を削除 https://www.ssh.com/ssh/config/ RSAAuthentication Specifies whether to try RSA authentication. This is for protocol version 1 only and is deprecated. これは古い設定のまま使っていたことが原因。 問題なのは以下の部分。 [zunermuka ~]$ ssh user0001@example.jp -p xxyyzz Enter passphrase for key '/Users/zunermuka/.ssh/id_rsa': Permission denied (publickey,gssapi-keyex,gssapi-with-mic). 該当ディレクトリ、ファイルのパーミッションは確認済み。 パスフレーズはスキップしていたはずだけれど、これは公開鍵認証周りの設定問題。 接続できないのは問題なので、その場しのぎで対応。 一旦、パスワード入力方式へ変更する https://secure.sakura.ad.jp/vps/#/login VPS の VNCコンソールから ログイン [root ~]$  vim /etc/ssh/sshd_config 公開鍵認証方式からパスワード入力方式にする PubkeyAuthentication yes ↓ PubkeyAuthentication ...