On Thu, Feb 19, 2009 at 5:10 AM, Shakthi Kannan <[email protected]>wrote:
> Hi, > > --- On Wed, Feb 18, 2009 at 7:18 PM, Yashpal Nagar <[email protected]> > wrote: > | y...@yash-desktop:~$ ssh-keygen -h > | ssh-keygen: illegal option -- h > \-- > > Yes, there is no -h option, but, you will get the list of available > options, and you should see an entry for "-R hostname Remove host from > known_hosts file" in the output. > > The openssh version that you are using is available here: > https://launchpad.net/ubuntu/+source/openssh/1:4.7p1-8ubuntu1.2 > > The -R option is available in ssh-keygen.c file in usage(void) function. > > By default known_hosts records the hostname/IP in hashed format. You can turn it off by putting the follwing into .ssh/config HashKnownHosts no I was under impression that one must need to have hostname/IP in known_hosts to use "ssh-keygen -R hostname/IP" , but I just tested it works! whether your hostname/IP is there or not in known_hosts , you can user ssh-keygen -R anyway... Excellent, thanks for your help! Regards Yash _______________________________________________ ilugd mailinglist -- [email protected] http://frodo.hserus.net/mailman/listinfo/ilugd Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/[email protected]/
