RE: file transfer using scp

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

 



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

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





-----Original Message-----
From: redhat-list-bounces@xxxxxxxxxx
[mailto:redhat-list-bounces@xxxxxxxxxx] On Behalf Of Greg Golin
Sent: Friday, December 02, 2005 12:48 AM
To: General Red Hat Linux discussion list
Subject: Re: file transfer using scp

Read up on ssh shared keys authentication.

GG



On 12/2/05, SysAdmin <sys-admin@xxxxxxxxxxxxxxxxxxx> wrote:
> Hi,
>
>   I am facing a problem in transfering file using scp. My example is
as
> follows
>
>
> I want to send a file using scp but it prompt a password and i want to
> avoid it. Is there any option that i can spcify the password in same
> command. Any help will apriciated thanks in advance.
>
>






*****************************************************************************
This email may contain confidential or privileged information. If you believe
 you have received the message in error, please notify the sender and delete 
the message without copying or disclosing it.
*****************************************************************************


-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux