LinuxQuestions.org
Review your favorite Linux distribution.
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 12-24-2009, 12:49 PM   #1
truehybridx
LQ Newbie
 
Registered: Feb 2008
Posts: 2

Rep: Reputation: 0
SCP and password on one line


ok i've read this other post Here where including the password was deemed a security risk....
BUT i have no problem so can someone help me withe providing scp with the password all in the same line?

ie: scp -r "something" root@0.0.0.0:/Applications/

I've tried using rootassword@0.0.0.0:/Applications/ but it gives me this error
Code:
ssh: Could not resolve hostname root: nodename nor servname provided, or not known
lost connection
yes the device im trying to scp to is an iphone with openssh installed

thanks for ze help
 
Old 12-24-2009, 01:02 PM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

The way you want to do it will not work (you cannot send the password with the scp command, there's no option for it).

You should take a look at pinniped's reply to the thread you refer to (this reply).

Hope this helps.
 
  


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
sftp/scp without password chuikingman Linux - Server 9 08-21-2009 06:50 AM
scp needs three times password in wrong password case!!! JATA01 Programming 6 12-01-2008 05:28 AM
SCP command script with password in same line?? your_shadow03 Linux - Newbie 1 11-11-2008 01:10 AM
SCP without Password help ignignokt Linux - Networking 3 01-02-2007 11:59 AM
scp and no password mikeyt_333 Linux - General 2 03-26-2002 03:33 PM

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

All times are GMT -5. The time now is 06:17 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
Open Source Consulting | Domain Registration