UJP - 技術情報

Life is fun and easy!

不正IP報告数

Okan Sensor
 
メイン
ログイン
ブログ カテゴリ一覧

     

SSH Secure ShellクライアントでOpenSSHサーバに接続してみる

SSH Secure ShellクライアントでOpenSSHサーバに接続してみる


0.更新履歴

  • 2002.06.21 新規作成

1.はじめに

 このドキュメントでは,インストールしたSSH Secure ShellのWindows版クライアントソフトを用いて,RedHat Linux 6.2で稼動しているOpenSSHサーバに接続してみる手順を説明する.

2.GUIツールの場合の手順

  • プログラムメニューを開く. 

  • [Secure Shell Client]アイコンを選択して起動.

  • こんな画面が開く.

  • [接続]ボタンを押下する.

  • ホスト名とユーザ名をいれて接続.

  • ホスト公開キーを受け取っとく.とりあえず保存するので,[はい]を選択しておく.

  • 接続ユーザのパスワードを入力する.

  • つながった.

  • ちなみに,OpenSSHのサーバで使っているモジュールを確認している図.

3.CUIツールで接続してみる

  • プログラムファイルには登録されていないけど,以下のようにCUIソフトが入っているので,これを使ってみる.

  • ssh2コマンドで接続する場合のスキーマは,“ユーザ名@ホスト名”となっている.

  • 特に問題なくつながった.
  • 今回,GUI版のようにホスト公開鍵うんぬんと出なかったのは,保存しているからだろうか?
  • あと,その他のオプションをつけて接続する場合は,次のようにパラメータをつければよい.

C:\>ssh2
ssh2: SSH Secure Shell 3.1.0 Windows Client
Copyright (c) 1995-2001 SSH Communications Security Corp
SSH is a registered trademark and Secure Shell is a trademark of
SSH Communications Security Corp (www.ssh.com).
All rights reserved.
Usage: ssh2 [options] [user@]host[#port] [command]
Options:
  -l user     Log in using this user name.
  +x          Enable X11 connection forwarding.
  -x          Disable X11 connection forwarding.
  -i file     Identity file for public key authentication
  -F file     Read an alternative configuration file.
  -t          Tty; allocate a tty even if command is given.
  -v          Verbose; display verbose debugging messages. Equal to `-d 2'
  -d level    Set debug level.
  -V          Display version number only.
  -q          Quiet; don't display any warning messages.
  -c cipher   Select encryption algorithm. Multiple -c options are
              allowed and a single -c flag can have only one cipher.
  -m MAC      Select MAC algorithm. Multiple -m options are
              allowed and a single -m flag can have only one MAC.
  -p port     Connect to this port.  Server must be on the same port.
  -S          Don't request a session channel.
  -L listen-port:host:port   Forward local port to remote address
  -R listen-port:host:port   Forward remote port to local address
              These cause ssh to listen for connections on a port, and
              forward them to the other side by connecting to host:port.
  +g          Gateway ports, i.e. remote hosts may connect to locally
              forwarded ports.
  -g          Don't gateway ports.
  +C          Enable compression.
  -C          Disable compression.
  -4          Use IPv4 to connect.
  -6          Use IPv6 to connect.
  -O prov     Use `prov' as the external key provider
  -E initstr  Use `initstr' as initialization string for the external key
              provider
  -o 'option' Process the option as if it was read from a configuration file.
  -h          Display this help.
Command can be either:
  remote_command [arguments] ...    Run command in remote host.
  -s service                        Enable a service in remote server.
Your configuration files are read from the directory:
'C:/Documents and Settings/Administrator/Application Data/SSH'

C:\>



広告スペース
Google