Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 08-10-2011, 12:24 PM   #1
LQ Newbie
Registered: Aug 2011
Posts: 4

Rep: Reputation: Disabled
To copy from one server to another without asking for password

Hi All,

Suppose I want to copy so may files from one server to another server. If i will use scp , then every time it will ask for user password..
Kindly share the complete procedure to do this . like what to take from path /usr/bin/ssh-keygen & copy to which path on 2nd server.

Kindly share setpwise.

Thanks in advance.
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 08-10-2011, 12:29 PM   #2
LQ Guru
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295

What have you tried and where is it failing? Or didn't you even look at Google? We're not here to offer you step by step guides or copy/paste howtos while there are tons of them on the Internet just waiting for you to be found. Have a look at the following:
Just two of the thousands of hits found through Google, your best friend.

Kind regards,

2 members found this post helpful.
Old 08-10-2011, 01:08 PM   #3
LQ Guru
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 9,078
Blog Entries: 4

Rep: Reputation: 3171Reputation: 3171Reputation: 3171Reputation: 3171Reputation: 3171Reputation: 3171Reputation: 3171Reputation: 3171Reputation: 3171Reputation: 3171Reputation: 3171
The best way to set up 'ssh' is through the use of digital certificates. Please "Google that."

In fact, you should set up the system such that the only way to connect to it is through certificates.
Old 08-10-2011, 03:08 PM   #4
LQ Newbie
Registered: Jan 2010
Location: San Diego, California
Distribution: Debian, RHEL, SuSE
Posts: 6

Rep: Reputation: 2
I love how 20 years ago, the standard response was always "RTFM" and over the years it's changed to "Google It".

It's vanilla responses like that which created a need for sites such as this, to help those learning a new environment to be able to do so with ease and find friendly assistance...


Once you have completed ssh-keygen, it will save your keys to ~/.ssh (/home/username/.ssh) as id_dsa and

Copy the contents of to ~/.ssh/authorized_keys on the server you wish to scp to, and make sure /etc/ssh/sshd_config has AuthorizedKeysFile %h/.ssh/authorized_keys uncommented (remove the #), and restart ssh, usually '/etc/init.d/sshd restart'.

Please note, you will have to assign a blank passphrase during ssh-keygen to make it passwordless. This is a giant security hole, as anyone with a copy of your private key, id_dsa, will be able to authenticate as that user.
1 members found this post helpful.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
copy file to another server without password confirmation Punareay Solaris / OpenSolaris 7 06-29-2010 03:29 AM
copy password form one server to other prasadl Linux - Server 3 06-11-2008 09:59 PM
copy folders between machines without password deepika5 Linux - Networking 2 04-24-2008 09:07 AM
automating scp copy, how to enter password via script? stefaandk Programming 3 11-29-2006 10:57 AM
Firefox password copy JrLz Linux - Security 2 12-20-2004 09:01 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:50 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration