最終更新:2021-03-10 (水) 09:06:23 (1136d)  

tokkyo/設定/SSH
Top / tokkyo / 設定 / SSH

Ubuntu

CentOS

サーバ

設定

再起動

  • sudo /etc/init.d/ssh restart

公開鍵をサーバに設置

  • authorized_keysを設置
    mkdir ~/.ssh/
    mv authorized_keys ~/.ssh/
    chmod 0600 ~/.ssh/authorized_keys
    chmod 0700 ~/.ssh

/etc/ssh/sshd_config

  • Protocol 2
    PermitRootLogin no
    PubkeyAuthentication yes
    PermitEmptyPasswords no
    PasswordAuthentication no
    ListenAddress 0.0.0.0  #IPv4用
    #ListenAddress ::    #IPv6用

関連

クライアント

参考