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 07-20-2011, 01:40 PM   #1
Drigo
Member
 
Registered: May 2009
Posts: 111

Rep: Reputation: 17
Able to use scp and ssh without entering the password


So, I want to write a bash script that will allow me to scp and ssh to a different server in the network.


Though, I dont know how to get rid of the inputting passwod line if both commands, any help?
 
Old 07-20-2011, 01:49 PM   #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,

Have a look at SSH with authentication key instead of password or Public key authentication with SSH. Those should get you started.

Kind regards,

Eric
 
Old 07-20-2011, 02:13 PM   #3
Drigo
Member
 
Registered: May 2009
Posts: 111

Original Poster
Rep: Reputation: 17
I've looked into ssh-keygen but would this work for scp?
 
Old 07-20-2011, 02:15 PM   #4
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,

Since 'SCP' is a part of the SSH protocol it will work. In my work environment I only use SSH key authentication to access our servers and I use scp a lot, so I can confirm it will work.

Kind regards,

Eric
 
Old 07-21-2011, 12:13 AM   #5
sandeep.sp
LQ Newbie
 
Registered: Jul 2011
Posts: 13

Rep: Reputation: Disabled
scp and rsync both will work without asking for password once you share your ssh keys among different machines.
 
  


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
[SOLVED] scp/ssh to cygwin server from linux server without password prompt... blainemiller Linux - Server 7 05-18-2011 02:04 PM
Tntrepid does not allow entering any password jdtiede Ubuntu 1 01-18-2009 10:18 PM
scp needs three times password in wrong password case!!! JATA01 Programming 6 12-01-2008 05:28 AM
SSH/SCP with no password wh33t Linux - Software 11 06-09-2007 11:38 PM
ssh/scp without password not working Mauline Linux - Security 4 03-30-2005 09:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:05 AM.

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