ssh-copy-id no identities found error

后端 未结 13 1417
情深已故
情深已故 2021-01-31 01:21

I have few client systems where I need to push the ssh key and login from my server without authentication prompts.

First, on the server, I created ssh key as below whi

13条回答
  •  眼角桃花
    2021-01-31 01:40

    The simplest way is to:

    ssh-keygen
    [enter]
    [enter]
    [enter]
    
    cd ~/.ssh
    ssh-copy-id -i id_rsa.pub USERNAME@SERVERTARGET
    

    Att:

    Its very very simple.

    In manual of "ss-keygen" explains:

    "DESCRIPTION ssh-keygen generates, manages and converts authentication keys for ssh(1). ssh-keygen can create RSA keys for use by SSH protocol version 1 and DSA, ECDSA or RSA keys for use by SSH protocol version 2. The type of key to be generated is specified with the -t option. If invoked without any arguments, ssh-keygen will generate an RSA key for use in SSH protocol 2 connections."

提交回复
热议问题