Go to main content
Oracle® Solaris 11.3 での Secure Shell アクセスの管理

印刷ビューの終了

更新: 2017 年 3 月
 
 

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

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

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

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

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

    The authenticity of host 'myRemoteHost' can't be established....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': passphrase
    2. プロンプトが表示されたら、アカウントのパスワードを入力します。
      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$
  4. リモートホストでトランザクションを実行します。

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

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

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

    myRemoteHost$ exit
    myRemoteHost$ logout
    Connection to myRemoteHost closed
    mySystem$
使用例 4  Secure Shell でのリモート GUI の表示

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