LoginSignup
12
10

More than 5 years have passed since last update.

ssh config

Posted at

個人用メモ。

~/.ssh/config ファイルの設定をしておくと、
SSHログイン時に毎回接続するサーバーの情報を打ち込む手間が省ける。

例えば、こんな感じで書いておくと

~/.ssh/config
Host server01
    HostName 192.168.1.2
    Port 22
    User username
    IdentityFile ~/.ssh/id_rsa

ホスト名だけでSSHログイン可能。

$ ssh server01

SFTPクライアントでもこの設定のホスト名がそのまま使えたりと便利

12
10
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
12
10