Re: ssh-keyscan exits in mid-way

This is a discussion on Re: ssh-keyscan exits in mid-way within the OpenSSH Development forums, part of the Networking and Network Related category; I digged up this problem further and find my results below. ssh-keyscan ignores the hosts if they are not ...


Go Back   Usenet Forums > Networking and Network Related > OpenSSH Development

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-19-2006
ponraj
 
Posts: n/a
Default Re: ssh-keyscan exits in mid-way

I digged up this problem further and find my results below.

ssh-keyscan ignores the hosts if they are not up or sshd is not running
when used with -f <file> option. But when it encounters any error while
retrieving the host key from the machine which is up and have sshd running,
it simply exits. This may happen due to transport layer implementation in
packet.c at packet_read_poll_seqnr() which results in exiting.

My guess is that as packet.c is utilised by all OpenSSH utilities
including ssh-keyscan, we can't make ssh-keyscan to continue with
remaining hosts as specified in -f <files> in case of an error. But I also
vote for atleast
documenting this one.

regards,
M.P

----- Original Message -----
From: "ponraj" <tryponraj@gmail.com>
To: <openssh-unix-dev@mindrot.org>
Sent: Saturday, July 15, 2006 2:29 PM
Subject: ssh-keyscan exits in mid-way


> Hello All,
>
> Im using OpenSSH 4.3p2 and tyring to scan a list of 40 machines in my
> network with ssh-keyscan utility. I used the following command,
>
> ssh-keyscan -t rsa -f hosts.txt
>
> The man page says that this utility displays the host keys irrespective of
> ssh or host is up/down and its working great. But in case if the scan
> stops at 30th host due to some protocol problems, the utility exits and
> don't display the host keys for remaining machines. I think this is an
> expected behaviour, but it would be better to ignore that host continue
> till the end or atleast this can be documented specifically in the man
> page.
>
> Any comments?
>
> Thanks,
> Ponraj M


_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@mindrot.org
http://lists.mindrot.org/mailman/lis...enssh-unix-dev
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 05:46 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0