LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 08-10-2011, 11:24 AM   #1
RAVINDER_KUKREJA
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, 11:29 AM   #2
EricTRA
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
Hello,

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:
http://www.cyberciti.biz/faq/ssh-pas...uthentication/
http://www.debian-administration.org/articles/530
Just two of the thousands of hits found through Google, your best friend.

Kind regards,

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

Rep: Reputation: 2742Reputation: 2742Reputation: 2742Reputation: 2742Reputation: 2742Reputation: 2742Reputation: 2742Reputation: 2742Reputation: 2742Reputation: 2742Reputation: 2742
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, 02:08 PM   #4
rkdavies
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...

Ravinder,

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

Copy the contents of id_dsa.pub 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.
  


Reply


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 02:29 AM
copy password form one server to other prasadl Linux - Server 3 06-11-2008 08:59 PM
copy folders between machines without password deepika5 Linux - Networking 2 04-24-2008 08:07 AM
automating scp copy, how to enter password via script? stefaandk Programming 3 11-29-2006 09:57 AM
Firefox password copy JrLz Linux - Security 2 12-20-2004 08:01 PM


All times are GMT -5. The time now is 09:57 PM.

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