ssh コマンドを入力して、リモートホストとログインの名前を指定します。
mySystem$ ssh myRemoteHost -l username
リモートホストの信頼性を尋ねるプロンプトが表示される場合があります。
The authenticity of host 'myRemoteHost' can't be established....Are you sure you want to continue connecting(yes/no)?
このプロンプトは、リモートホストに初めて接続する場合には正常なプロンプトです。
Are you sure you want to continue connecting(yes/no)? no
システム管理者は、大域の /etc/ssh/ssh_known_hosts ファイルを更新する責任があります。更新された ssh_known_hosts ファイルでは、このようなプロンプトは表示されません。
Are you sure you want to continue connecting(yes/no)? yes
Enter passphrase for key '/home/username/.ssh/id_rsa': passphrase
username@myRemoteHost's password: password Last login: Wed Sep 7 09:07:49 2016 from mySystem Oracle Corporation SunOS 5.11 11.3 September 2016 myRemoteHost$
ユーザーが送信するコマンドはすべて暗号化されます。ユーザーが受信する応答はすべて暗号化されます。
終了したら、exit を入力するか、通常の方法でシェルを終了します。
myRemoteHost$ exit myRemoteHost$ logout Connection to myRemoteHost closed mySystem$
この例では、jdoe は両方のシステム上の初期ユーザーであり、ソフトウェアインストールに関連する権利プロファイルが割り当てられています。X11Forwarding キーワードのデフォルト値は引き続き yes であり、xauth パッケージはリモートシステム上にインストールされています。
$ ssh -l jdoe -X myRemoteHost jdoe@myRemoteHost's password: password Last login: Wed Sep 7 09:07:49 2016 from myLocalHost Oracle Corporation SunOS 5.11 11.3 September 2016 myRemoteHost$ useful-app-with-GUI &