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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
09-30-2003, 07:59 AM
|
#1
|
Member
Registered: Feb 2002
Posts: 586
Rep:
|
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).
|
|
|
10-04-2003, 08:18 PM
|
#3
|
Member
Registered: Feb 2002
Posts: 586
Original Poster
Rep:
|
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
|
|
|
10-21-2003, 05:20 PM
|
#4
|
Member
Registered: Feb 2002
Posts: 586
Original Poster
Rep:
|
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
|
|
|
10-21-2003, 06:15 PM
|
#5
|
Member
Registered: Oct 2003
Location: Salt Lake City, UT
Distribution: RedHat 9
Posts: 35
Rep:
|
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"
|
|
|
10-21-2003, 07:20 PM
|
#6
|
Member
Registered: Feb 2002
Posts: 586
Original Poster
Rep:
|
I got an error message: command not found.. Don't know why .. What is the basename?
|
|
|
10-21-2003, 07:39 PM
|
#7
|
Member
Registered: Oct 2003
Location: Salt Lake City, UT
Distribution: RedHat 9
Posts: 35
Rep:
|
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.
|
|
|
10-21-2003, 11:51 PM
|
#8
|
Senior Member
Registered: Feb 2003
Location: Calif, USA
Distribution: PCLINUXOS
Posts: 2,918
Rep: 
|
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.
|
|
|
10-22-2003, 12:34 AM
|
#9
|
Member
Registered: Oct 2003
Location: Salt Lake City, UT
Distribution: RedHat 9
Posts: 35
Rep:
|
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.
|
|
|
11-05-2004, 09:55 AM
|
#10
|
Member
Registered: Feb 2002
Posts: 586
Original Poster
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 02:40 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|