<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Login on Simon Žekar — unix, communications, stupidities</title><link>https://simon.zekar.com/tags/login/</link><description>Recent content in Login on Simon Žekar — unix, communications, stupidities</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Sun, 28 Feb 2010 01:37:34 +0000</lastBuildDate><atom:link href="https://simon.zekar.com/tags/login/index.xml" rel="self" type="application/rss+xml"/><item><title>automatic login to Cisco routers / firewalls</title><link>https://simon.zekar.com/2010/02/28/automatic-login-to-cisco-routers-firewalls/</link><pubDate>Sun, 28 Feb 2010 01:37:34 +0000</pubDate><guid>https://simon.zekar.com/2010/02/28/automatic-login-to-cisco-routers-firewalls/</guid><description>&lt;p>Since many of you are still connecting to your Cisco boxes with the plain ssh/telnet command (typing password every time) and since Cisco boxes don’t have SSH public key authentication, the tool to use comes from &lt;a href="http://www.shrubbery.net/rancid/">Rancid&lt;/a> (Really Awesome New Cisco confIg Differ) package.&lt;/p>
&lt;p>It’s called “&lt;strong>clogin&lt;/strong> ” as &lt;a href="http://www.shrubbery.net/rancid/man/clogin.1.html">Cisco login script&lt;/a>.&lt;/p>
&lt;p>It requires all the credentials in ~/.cloginrc file (protocol / password / enable).&lt;/p>
&lt;p>Syntax of .cloginrc file can be found &lt;a href="http://www.shrubbery.net/rancid/man/cloginrc.5.html">here&lt;/a>.&lt;/p>
&lt;p>and usage is simple, just &lt;code>clogin hostname&lt;/code>&lt;/p>
&lt;p>And besides loging it’s very usefull for multiple box configuration. Let’s say you just need to write configs of your 5 routers.&lt;/p>
&lt;p>&lt;code>clogin -c &amp;quot;write;exit&amp;quot; router1 router2 router3 router4 router5&lt;/code>&lt;/p>
&lt;p>and Voila !&lt;/p>
&lt;p>S.&lt;/p></description></item></channel></rss>