ssh コマンドを入力して、リモートホストとログインの名前を指定します。
mySystem% ssh myRemoteHost -l username
リモートホストの信頼性を尋ねるプロンプトが表示される場合があります。
The authenticity of host 'myRemoteHost' can't be established. RSA key fingerprint in md5 is: 04:9f:bd:fc:3d:3e:d2:e7:49:fd:6e:18:4f:9c:26 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': <Type passphrase>
username@myRemoteHost's password: <Type password> Last login: Wed Sep 7 09:07:49 2011 from myLocalHost Oracle Corporation SunOS 5.11 September 2011 myRemoteHost%
ユーザーが送信するコマンドはすべて暗号化されます。ユーザーが受信する応答はすべて暗号化されます。
終了したら、exit を入力するか、通常の方法でシェルを終了します。
myRemoteHost% exit myRemoteHost% logout Connection to myRemoteHost closed mySystem%
この例では、jdoe は両方のシステム上の初期ユーザーであり、Software Installation 権利プロファイルが割り当てられています。jdoe は、リモートシステム上でパッケージマネージャー GUI を使用したいと考えています。X11Forwarding キーワードのデフォルト値は引き続き yes であり、xauth パッケージはリモートシステム上にインストールされています。
% ssh -l jdoe -X myRemoteHost jdoe@myRemoteHost's password: password Last login: Wed Sep 7 09:07:49 2011 from myLocalHost Oracle Corporation SunOS 5.11 September 2011 myRemoteHost% packagemanager &