切断せずにSSH接続設定を変更しますか?

切断せずにSSH接続設定を変更しますか?

私が見たSSHビデオの暗い芸術このビデオの講師は、いくつかのキーの組み合わせを介してSSHシェルに入ります。彼はどうしたの?

ベストアンサー1

opensshについて話している場合は、3つのキー入力シーケンスを使用してSSHエスケープメニューを取得できます<ENTER>~?

$ ~?
Supported escape sequences:
~.  - terminate connection
~B  - send a BREAK to the remote system
~C  - open a command line
~R  - Request rekey (SSH protocol 2 only)
~^Z - suspend ssh
~#  - list forwarded connections
~&  - background ssh (when waiting for connections to terminate)
~?  - this message
~~  - send the escape character by typing it twice
(Note that escapes are only recognized immediately after newline.)

これは<ENTER>~Csshコマンドラインに入ることを示します。ここからいくつかのポート転送を管理できます。

$ ~C
ssh> ?
Commands:
      -Lport:host:hostport    Request local forward
      -Rport:host:hostport    Request remote forward
      -KRhostport             Cancel remote forward

それ以外の場合はを使用してローカルシェルに入ることができます<ENTER>~^Z

おすすめ記事