LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-30-2003, 06:59 AM   #1
mikeshn
Member
 
Registered: Feb 2002
Posts: 586

Rep: Reputation: 30
scp option


I always coping files from my local computer to server using scp. Every time it ask me for username and password. Is it possible to avoid checking password procedure and to write scp command in one line (with no password checking).
 
Old 09-30-2003, 07:41 AM   #2
LarryDoliver
Member
 
Registered: Mar 2003
Posts: 126

Rep: Reputation: 17
sure is - just like ssh without a password:
http://www.cs.umd.edu/~arun/misc/ssh.html

-Larry
 
Old 10-04-2003, 07:18 PM   #3
mikeshn
Member
 
Registered: Feb 2002
Posts: 586

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by LarryDoliver
sure is - just like ssh without a password:
http://www.cs.umd.edu/~arun/misc/ssh.html

-Larry
I followed until section 4 and able to connect but have such message. Problem is that remote server doesn't have the X running. Should I follow next steps too?


Warning: No xauth data; using fake authentication data for X11 forwarding.
Last login: Sat Oct 4 20:36:29 2003 from IP address
 
Old 10-21-2003, 04:20 PM   #4
mikeshn
Member
 
Registered: Feb 2002
Posts: 586

Original Poster
Rep: Reputation: 30
I made the ssh work without password fo a couple of users. However I cannot make it work for one user. This user has "identity.pub" in the directory. Can this file cause some problems?

Thanks
 
Old 10-21-2003, 05:15 PM   #5
banderson
Member
 
Registered: Oct 2003
Location: Salt Lake City, UT
Distribution: RedHat 9
Posts: 35

Rep: Reputation: 15
you can take it one step further and make a script called ssh-to (in /usr/bin):
#!/bin/sh
ssh `basename $0` $*

then create link
ln -s ssh-to servername

now you only have to type servername to ssh to that host

This came from the O'reilly book called "Linux Server Hacks"
 
Old 10-21-2003, 06:20 PM   #6
mikeshn
Member
 
Registered: Feb 2002
Posts: 586

Original Poster
Rep: Reputation: 30
I got an error message: command not found.. Don't know why .. What is the basename?
 
Old 10-21-2003, 06:39 PM   #7
banderson
Member
 
Registered: Oct 2003
Location: Salt Lake City, UT
Distribution: RedHat 9
Posts: 35

Rep: Reputation: 15
Did you put both the ssh-to script and the link in /usr/bin? basename basically means take the name of the link file and use it as the host paramer in the ssh command.
 
Old 10-21-2003, 10:51 PM   #8
2damncommon
Senior Member
 
Registered: Feb 2003
Location: Calif, USA
Distribution: PCLINUXOS
Posts: 2,918

Rep: Reputation: 103Reputation: 103
I do not always follow why people so dislike entering a password.
Doesn't entering your password = security?
I never want any program, Windows or Linux, to "remember" my password.
 
Old 10-21-2003, 11:34 PM   #9
banderson
Member
 
Registered: Oct 2003
Location: Salt Lake City, UT
Distribution: RedHat 9
Posts: 35

Rep: Reputation: 15
I agree the key should have a good passphase, I wouldn't leave it blank. You only have to type it once at the beginning of your session, not that big of a deal.
 
Old 11-05-2004, 08:55 AM   #10
mikeshn
Member
 
Registered: Feb 2002
Posts: 586

Original Poster
Rep: Reputation: 30
Re: scp option

Quote:
Originally posted by mikeshn
I always coping files from my local computer to server using scp. Every time it ask me for username and password. Is it possible to avoid checking password procedure and to write scp command in one line (with no password checking).
When I use passphrase it always ask for the password. When passphrase is not specify I can connect.
 
  


Reply



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
scp does not work and gives the following error message: scp: FATAL: Executing ssh1 i akay Linux - Networking 16 09-28-2008 11:41 PM
SCP how to the_rhino Linux - Newbie 5 02-11-2005 07:50 PM
What is SCP? radam Linux - Software 2 07-20-2004 07:07 PM
scp problem eduac Linux - Security 3 08-11-2003 10:00 AM
Help with SCP lfindle Linux - Newbie 14 07-09-2002 02:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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