タグ

関連タグで絞り込む (0)

  • 関連タグはありません

タグの絞り込みを解除

sshに関するlenhaiのブックマーク (2)

  • If you’re not using SSH certificates you’re doing SSH wrong

    If you’re not using SSH certificates you’re doing SSH wrongUpdated on: June 8, 2023 SSH is ubiquitous. It's the de-facto solution for remote administration of *nix systems. But SSH has some pretty gnarly issues when it comes to usability, operability, and security. You're probably familiar with these issues: SSH user experience is terrible. SSH user on-boarding is slow and manual. Connecting to ne

    If you’re not using SSH certificates you’re doing SSH wrong
    lenhai
    lenhai 2022/03/27
  • パスワードの1文字目に「~(チルダ)」を使って痛い目にあった - Qiita

    何を言っているんだと思われるかもしれないですが、気軽にパスワードの1文字目に「~」を使わないほうがいいというお話です。 起こった問題 踏み台サーバー経由でサーバーAに接続して作業をしていた時の話です。 いわゆる多段 ssh 接続というもので、リモートワークになってからは結構使われる方も多いかと思います。 サーバーA上で root 権限になろうと sudo su - してパスワードを入力したら Connection to xxx.xxx.yyy.zzz closed. の文字とともにサーバーAから追い出されてしまいました。 なにかの間違いだろうと何度か挑戦していたのですが、結果はサーバーAから切断され踏み台サーバーに戻る羽目に。。。 そのときに入力していたパスワードが ~.xxxxxxxxxx のような ~ から始まるものでした。 調査 ~ って何か意味があったよなーと思ってどう調べようかと

    パスワードの1文字目に「~(チルダ)」を使って痛い目にあった - Qiita
    lenhai
    lenhai 2022/02/10
    ssh接続先がフリーズしてエンター後~.を入力し切断は良く使う。newline直後のみ有効だから~が2文字目以降なら問題なし。1文字目~でも2文字目が数字とかなら問題なし。~~で~を送るか、パスワード入力前にctrl+u等で回避可能。
  • 1