configuring SSH with RSA keys for use without passwords

From: Swan, Jay (jswan@sugf.com)
Date: Wed Jun 06 2007 - 14:27:30 ART


Anybody know how to configure IOS to accept ssh one-liners without
prompting for a password? I want to be able to use regular bash shell
commands from my PC to parse router output without logging in. For
example:

$ ssh 10.55.100.226 sh log | tail -3

jswan@10.55.100.226's password:

*Jun 5 15:19:16.204 mdt: %LINEPROTO-5-UPDOWN: Line protocol on
Interface Serial0/3/0, changed state to up

*Jun 5 15:19:16.776 mdt: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 5: Neighbor
172.16.17.6 (Serial0/3/0) is up: new adjacency

*Jun 5 15:19:51.956 mdt: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 5: Neighbor
10.55.100.225 (FastEthernet0/0) is up: new adjacency

In the Unix world I can skip the part where it asks for my password by
installing the appropriate keys on the server. How can I do this in IOS?

Jay

#17783 R&S



This archive was generated by hypermail 2.1.4 : Sun Jul 01 2007 - 17:24:47 ART