LinuxQuestions.org
Help answer threads with 0 replies.
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 11-17-2008, 01:34 PM   #1
vickylife
LQ Newbie
 
Registered: Nov 2008
Posts: 6

Rep: Reputation: 0
How to simulate scp command using ssh?


How to simulate scp command using ssh?
 
Old 11-17-2008, 01:39 PM   #2
zQUEz
Member
 
Registered: Jun 2007
Distribution: Fedora, RHEL, Centos
Posts: 294

Rep: Reputation: 54
Do you have an example of what you are trying to do? Basically scp uses the same framework as ssh. In other words, by using scp you are using ssh to do your file copy.
 
Old 11-17-2008, 01:46 PM   #3
vickylife
LQ Newbie
 
Registered: Nov 2008
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by zQUEz View Post
Do you have an example of what you are trying to do? Basically scp uses the same framework as ssh. In other words, by using scp you are using ssh to do your file copy.
Well i want to set up a ssh key pair between two machines making sure that i should be asking password only once. Now problem is when i generate key pairs first i have to check if
1) if ~/.ssh file exists in remote machines. If not, create one
2) scp the public key to remote machine
3) cat rsa.pub >> authorized_keys in remote machine.

Now each of this step requires ssh/scp. Can someone tell me how to do this all by prompting for password only once.
 
Old 11-18-2008, 06:22 AM   #4
zQUEz
Member
 
Registered: Jun 2007
Distribution: Fedora, RHEL, Centos
Posts: 294

Rep: Reputation: 54
In terms of setting up your keys on the servers, I don't think you can. You need to go through the manual task of setting them up. However, once they are there, you can use ssh-agent to have password-less logins (or 1 password and then it is automated). http://mah.everybody.org/docs/ssh

Or you could do keys with no passphrase and then have your private key stored in an encrypted file that gets mounted (truecrypt)
 
  


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
How to use EXPECT command to scp or ssh? thefountainhead100 Linux - Software 6 03-28-2008 07:41 PM
Translating windows pscp command to linux scp command help robward Linux - General 2 01-17-2008 07:02 AM
scp and ssh linderox Linux - Networking 2 11-19-2007 03:04 AM
How to simulate closing a window from the command line with /usr/bin/killall? Winter Knight Linux - Desktop 5 11-10-2007 05:05 PM
ssh scp problem ckupris Linux - Networking 6 10-11-2003 06:17 PM


All times are GMT -5. The time now is 08:40 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