Skip to content

Instantly share code, notes, and snippets.

@y0t4
Last active August 29, 2015 14:02
Show Gist options
  • Save y0t4/408d57d08349cd25cf25 to your computer and use it in GitHub Desktop.
Save y0t4/408d57d08349cd25cf25 to your computer and use it in GitHub Desktop.

設定の例

Host test
  User test-user
  Hostname example.com
  identityfile ~/.ssh/id_rsa.example

sshしてみる

上記のように記述した場合以下のコマンドでサーバにsshすることができる。

$ ssh test

他にも

だがこれだけではなく、sshに関連したものならこの設定を読み込んで使うことができる。

$ scp aiueo.txt test:~/aiueo.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment