LinuxQuestions.org
Visit the LQ Articles and Editorials section
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, 10:47 AM   #1
bujecas
Member
 
Registered: Oct 2004
Location: Portugal
Distribution: Debian, Slackware
Posts: 78

Rep: Reputation: 15
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, 12:41 PM   #2
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,034

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
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, 01:57 PM   #3
Hobbletoe
Member
 
Registered: Sep 2004
Location: Dayton, Oh
Distribution: Linux Mint 10, Linux Mint 11
Posts: 148

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, 10:06 AM   #4
bujecas
Member
 
Registered: Oct 2004
Location: Portugal
Distribution: Debian, Slackware
Posts: 78

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


All times are GMT -5. The time now is 07:32 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration