#author("2022-04-14T07:02:32+00:00","default:admin","admin") * コマンド例 [#v975ee38] -[[sshで2重トンネルを掘る方法 [Mac]:http://hiro2.jp/cat_mac-6.html]] -[[備忘録:SSHトンネル:http://eien.seesaa.net/article/3824661.html]] -host1をトンネリングしてlocalhost:8880とhost2:80をつなぐ ssh -2 -N -f -L 8880:[host2]:80 [user1@host1] *鍵認証でログイン [#de45e18e] -[[SSH公開鍵認証で接続するまで:https://qiita.com/kazokmr/items/754169cfa996b24fcbf5]] -[[【ssh】公開鍵認証するときのパスフレーズを省略する方法の紹介:https://fumidzuki.com/knowledge/3401/]] *設定の注意点 [#p7d4133c] -ファイルのパーミッションに注意! 以下は自分のみが読み書き可 --.ssh ディレクトリ --.ssh/authorized_keys --.ssh/id_rsa *SCP [#af3ff672] -[[PSCP で安全にファイルを転送する:https://www.ranvis.com/doc/putty/man/Chapter5.html]] * リンク集 [#r5d5c936] -[[SSHピンポンダッシュを防ぎたい:http://www.itmedia.co.jp/help/tips/linux/l0541.html]] -[[SSH サーバの設定:http://www14.plala.or.jp/campus-note/vine_linux/server_ssh/sshd_config.html]] -[[SSH・SCP・SFTP・RSYNC・X11転送・認証エージェント の勉強メモ:http://peace-pact-2007.blogspot.com/2007/10/sshscpsftprsyncx11.html#scp]] -[[SSH Frequently Asked Question:http://www.snailbook.com/faq/]] -[[ssh_exchange_identification: Connection closed by remote host (solved):http://www.raditha.com/blog/archives/000604.html]] -[[sshでパスワードなしにログインするには:http://www.atmarkit.co.jp/flinux/rensai/linuxtips/447nonpassh.html]] *トラブルシューティング [#b8c98679] -[[macでssh接続をしたときno matching key exchange method found. Their offer: diffie-hellman-group1-sha1と言われて接続できない:https://shsm385.hatenablog.com/entry/2018/10/17/161258]] --.ssh/config に以下を記述 Host xxx.xxx.xxx.* KexAlgorithms +diffie-hellman-group1-sha1 Ciphers aes128-cbc