Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here. |
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.
|
 |
06-21-2006, 09:47 AM
|
#1
|
Member
Registered: Oct 2004
Location: Portugal
Distribution: Debian, Slackware
Posts: 78
Rep:
|
ssh host authentication
Hello,
I want to copy some files from a server to a client machine. For that I use public/private key auhtentication and scp. For a automated process (running in a cronjob) it must not have interactivity. My problem is when the client contacts the server for the first and the host authentication question is shown. Is there any way to force that question not to be shown?
Thanks.
|
|
|
06-21-2006, 11:41 AM
|
#2
|
LQ 5k Club
Registered: May 2003
Location: London, UK
Distribution: Fedora40
Posts: 6,153
|
I am not sure what you mean by "host authentication question is shown".
Perhaps it is asking for the passphrase?
When I generate my public/private keys, I do not enter any passphrase (just press <RETURN>), so I do not get asked for the passphrase, and login is automatic.
Try regenerating your keys without a passphrase.
HTH
|
|
|
06-21-2006, 12:57 PM
|
#3
|
Member
Registered: Sep 2004
Location: Dayton, Oh
Distribution: Linux Mint 17
Posts: 150
Rep:
|
Once you answer the host authentication question once, that host should be written to your ~/.ssh/known_hosts file. You shouldn't have to answer again after that.
|
|
|
06-22-2006, 09:06 AM
|
#4
|
Member
Registered: Oct 2004
Location: Portugal
Distribution: Debian, Slackware
Posts: 78
Original Poster
Rep:
|
Solved with "StrictHostKeyChecking no" in the ~/.ssh/config.
The problem was the first time it tries to connect to server, the known_hosts at that time doesn't have anything, so it ask if I want to add it, that was the problem.
Thanks.
|
|
|
All times are GMT -5. The time now is 12:02 AM.
|
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
|
|