Oracle® Solaris 11.2 での Secure Shell アクセスの管理

印刷ビューの終了

更新: 2014 年 9 月
 
 

Secure Shell を使用してリモートホストにログインする方法

  1. Secure Shell セッションを開始します。

    ssh コマンドを入力して、リモートホストとログインの名前を指定します。

    mySystem% ssh myRemoteHost -l username
  2. プロンプトが表示されたら、リモートホスト鍵の信頼性を確認します。

    リモートホストの信頼性を尋ねるプロンプトが表示される場合があります。

    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)? 

    このプロンプトは、リモートホストに初めて接続する場合には正常なプロンプトです。

    • リモートホストの信頼性を確認できない場合は、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
  3. Secure Shell に対して自分を認証します。
    1. プロンプトが表示されたら、自分のパスフレーズを入力します。
      Enter passphrase for key '/home/username/.ssh/id_rsa': <Type passphrase>
    2. プロンプトが表示されたら、アカウントのパスワードを入力します。
      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%
  4. リモートホストでトランザクションを実行します。

    ユーザーが送信するコマンドはすべて暗号化されます。ユーザーが受信する応答はすべて暗号化されます。

  5. Secure Shell の接続を切断します。

    終了したら、exit を入力するか、通常の方法でシェルを終了します。

    myRemoteHost% exit
    myRemoteHost% logout
    Connection to myRemoteHost closed
    mySystem%
使用例 1-2  Secure Shell でのリモート GUI の表示

この例では、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 &