LoginSignup
1
3

More than 5 years have passed since last update.

ssh config 使い方

Posted at

SSH config を使い接続する

ssh で接続する際は下記でだいたい接続を行う。

ssh brian@156.65.25.32

上記な感じである。

ユーザー名、接続先Ip アドレスでパスワードで接続できます

congif をつかうとこんな感じで接続できます。
まずはconfig ファイルを作成する。

Host brian
    HostName 156.65.25.32
    Port 22
    User brian
    IdentityFile ~/.ssh/id_rsa

上記ファイルを作成したら、ssh 接続します。

ssh brian

sftpなら下記で

sftp brian

で接続することができます。

複数のssh keyを使って接続したい場合などは便利である。

1
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
3