ここでは、サーバーの初心者と参考になるようにMacでサーバを使用しています。ローカルのsshキーを削除した後でもLAMPサーバにアクセスできます
私は私と私のLAMPスタックの間で私のsshキー認証を壊そうとしていますが、私はできません。言い換えれば、それは私にアクセス権を与え、私はどのようにわからないのですか?ここで私は
- は、端子を介してキーを作成しました...何をやったかです:
ssh-keygen -f foo_key
- 立ち往生私のサーバー上の正しい場所にあるパブのキー...端子を通じてssh'ed
- :
ssh -i /Users/me/.ssh/foo_key [email protected]
- セットアップ時に選択したパスワードを尋ねられました。細かい入力がありました。
これで私のサーバーから次の私はlogout
にアクセスしました。今私はこのコンピュータにアクセスを取りやめたいと思う。ローカルプライベートキーと公開キーを削除しようとしましたが、known_hosts
でチェックサムを削除しようとしましたが、keychain access
に保存されているキーを探してみました。
この認証情報はどこに保存されていますか?かなり迷惑です。
すべてのガイダンスが高く評価されます。
EDIT
ここではいくつかの詳細な情報があります、それは今ではすべての私のfoo_key
を使用していないようです:
debug1: identity file /Users/me/.ssh/id_rsa type 1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/me/.ssh/id_rsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/me/.ssh/id_dsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/me/.ssh/id_dsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/me/.ssh/id_ecdsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/me/.ssh/id_ecdsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/me/.ssh/id_ed25519 type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/me/.ssh/id_ed25519-cert type -1
それでもfrickin RSAキーに何も正確な情報で提供しています最初の場所:
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: publickey
debug1: Offering RSA public key:
debug1: Authentications that can continue: publickey,password
debug1: Offering RSA public key:
debug1: Server accepts key: pkalg ssh-rsa blen 279
debug1: Authentication succeeded (publickey).
別の更新
-vvvを実行しても、私がすでに投稿した情報よりも意味のある情報は得られません。これと関連があるかどうかは分かりませんが、authorized_keys
ファイルは~/.ssh/
にありません。私は1つを作成し、いくつかの新しいキーを生成し、何もそこに格納されません。
マシンで生成した鍵のすべての証拠を削除したにもかかわらず、なぜ私がサーバにアクセスできるのかを知る必要があります。これは一般的ではないと信じられない!
私はid_rsa
のキーをデフォルトにしていません。私は特にカスタムキーを作成していて、引き続き使用したいと考えています。
冗長ログの後にそれはあなたに何が起こっているかを教えてくれるでしょう。 – Jakuje
私はそれをいくつか投稿しました。 –
いくつかのキーで認証しています。 '-vvv'を使用するとさらに多くの情報が得られます。うまくいけば、どこからキーを取得するのでしょうか。 – Jakuje