LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 06-21-2006, 09:47 AM   #1
bujecas
Member
 
Registered: Oct 2004
Location: Portugal
Distribution: Debian, Slackware
Posts: 78

Rep: Reputation: 20
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.
 
Old 06-21-2006, 11:41 AM   #2
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora40
Posts: 6,153

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
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
 
Old 06-21-2006, 12:57 PM   #3
Hobbletoe
Member
 
Registered: Sep 2004
Location: Dayton, Oh
Distribution: Linux Mint 17
Posts: 150

Rep: Reputation: 18
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.
 
Old 06-22-2006, 09:06 AM   #4
bujecas
Member
 
Registered: Oct 2004
Location: Portugal
Distribution: Debian, Slackware
Posts: 78

Original Poster
Rep: Reputation: 20
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.
 
  


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
SSH authentication vkmgeek Linux - General 1 04-12-2006 07:40 AM
How to setup a host.deny and host.allow for SSH? explorer1979 Linux - Security 2 01-31-2005 05:28 PM
SSH authentication blmack44 Linux - Security 1 12-31-2004 02:13 PM
Sending mail via Postfix smtpd through remote host requiring authentication Saffsd Linux - Networking 0 01-26-2004 05:05 AM
SSH Authentication Help kalikoder Linux - Networking 2 07-16-2003 02:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

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