読者です 読者をやめる 読者になる 読者になる

onox developer blog

developerman

ssh config テンプレ

やること

システム共通に設定するなら

/etc/ssh/ssh_config

ユーザ毎に設定するなら

~/.ssh/config

設定値

# 全サーバ共通とするため前書き
ServerAliveInterval 60
ServerAliveCountMax 3

# host毎に記載
Host hoge
    HostName hoge 
    User hoge-user
    Port  22
    IdentityFile ~/.ssh/hoge/hoge.pem

(参考)manでみたsshsshd

  • ssh

    DESCRIPTION ssh (SSH client) is a program for logging into a remote machine and for executing commands on a remote machine. It is intended to replace rlogin and rsh, and pro‐ vide secure encrypted communications between two untrusted hosts over an insecure network. X11 connections and arbitrary TCP ports can also be forwarded over the secure channel.

  • sshd

    DESCRIPTION sshd (OpenSSH Daemon) is the daemon program for ssh(1). Together these programs replace rlogin(1) and rsh(1), and provide secure encrypted communications between two untrusted hosts over an insecure network.