[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: file transfer using scp



> Some steps to follow, may have to expirament a bit:
>
> 1. make sure you have pub key authentication enables in
> /etc/ssh/sshd_config:  PubkeyAuthentication yes
>
> 2. make sure the target machine knows about client, by adding to
this
> file in ~/.ssh/known_hosts
>
> 3. run ssh-keygen -t rsa , DON't give passphrase when prompted

Why? Passphare login defeats the very purpose of SSH

>
> 4. copy your pub key over to target system:
> scp -p .ssh/my_rsa.pub  user li:~/.ssh/key.pub
>
> 5. add key to auth file on target
> cat  my_rsa.pub >> authorized_keys
>
> 6. start the agent: ssh-agent /bin/bash  (see man ssh-agent)
>
> 7. run ssh-add , ssh-add -l  to make sure you key is in memory

Excellent! Just to add there is tool available to make password less
login using keychain.Do consider understanding and using it.

Regards,

Dracula


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]