Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


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

Rep: Reputation: 20
ssh host authentication


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?

Old 06-21-2006, 12:41 PM   #2
LQ 5k Club
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,087

Rep: Reputation: 407Reputation: 407Reputation: 407Reputation: 407Reputation: 407
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.

Old 06-21-2006, 01:57 PM   #3
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, 10:06 AM   #4
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.


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 > Forums > Linux Forums > Linux - Security

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration