タグ: .ssh

  • ~/.ssh/authorized_keysの作成方法

    ~/.ssh/authorized_keysの作成方法

    ~$ ssh-copy-id -i ~/.ssh/id_rsa.pub user@host.example.com

    /usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: “/home/toc/.ssh/id_rsa.pub”
    /usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), t
    o filter out any that are already installed
    /usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed — if you a
    re prompted now it is to install the new keys
    user@host.example.com’s password:  ログインパスワードを入力

    umber of key(s) added: 1

    Now try logging into the machine, with:   “ssh ‘toc@yes.nigiwai-net.com
    ‘”
    and check to make sure that only the key(s) you wanted were added.