Oracle® Solaris 11.2 でのリモートシステムの管理

印刷ビューの終了

更新: 2014 年 7 月
 
 

Secure Shell を使用してリモートシステムにアクセスする方法

  1. リモートシステムにログインします。
    # ssh [-l login-name] hostname | login-name@hostname
    login-name

    リモートシステムへのログインに使用できるデフォルト以外のユーザー名

    hostname

    リモートシステム名

    システムのホスト鍵が検証されると、ユーザーに対しパスワードの入力が求められます。パスワードが間違って入力された場合は、ユーザーに対しパスワードが再度求められます。

    システムへのログインが成功すると、ユーザーによるシステムへの最終リモートログインに関する情報が表示されます。表示される情報には、リモートシステムで実行されているオペレーティングシステムのバージョン、最終ログイン試行失敗、およびユーザーのホームディレクトリにユーザー宛ての新しいメールがあることの通知などがあります。

  2. リモートシステムからログアウトします。

    リモートシステムからログアウトするには、次のいずれかのコマンドを使用します。

    • exit

    • logout

    • Control-D

使用例 3-1  ssh を使用したリモートシステムでの作業

次の例は、pluto へリモートログインした出力を示しています。システムのホスト鍵が /etc/ssh_known_hostsファイルまたは ~/.ssh/known_hosts ファイルに指定されていません。ユーザーは最初の試行で不正なパスワードを入力しました。

# ssh -l amy pluto
The authenticity of host 'pluto (10:120:100:12)' can't be established.
RSA key fingerprint is 06:55:4d:4e:d2:4a:e6:d9:8a:c4:13:15:18:9a:ef:dd.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'pluto' (RSA) to the list of known hosts.
Password:
Password:
Warning: 1 failed authentication attempt at Wed Jun 27 12:47 2012 since 
last successful authentication.

Last login: Wed Jun 27 12:19:04 2012 from venus.example
Oracle Corporation      SunOS 5.11      11.1    June 2012
# exit