EEM/SSH onto another device: Can I avoid password in cleartext?

Hi All
I would like to create an EEM script on Switch A which ssh's onto Switch B to run a second EEM script.
After looking on the Cisco site and forums, I believe the following would allow me to do this:
Switch A
event manager applet Script1
action 1.0 cli command "ssh -l <SwitchB_User> <SwitchB_IPAddress> "event man run Script2"" pattern "word:"
action 2.0 cli command "<password>" pattern "#"
action 3.0 cli command "exit" pattern "#"
Switch B
event manager applet Script2
action 1.0 mail server "<mailserver>" to "<toaddress>" from "<fromaddress>" subject "<subject>" body "<body>"
Would you be able to help with the following queries:
a) is the configuration correct?
b) Is there any way of encrypting the password so that it doesn't appear as clear text in the running/start up configurations?
Many Thanks!
John

The configuration looks good as far as EEM is concerned, but you will run into trouble with the SSH password. SSH uses a keyboard-interactive process by default, which is unfriendly to scripting/pasting, so it's most likely that your script will hang after executing the SSH command, never receiving the password prompt.
SSH supports establishing connections without passwords using pre-defined RSA private and public key pairs, but only the server side of IOS SSH supports this. It would be workable if you were running the requests from the Unix/Linux box, but not from IOS.
If you want to be able to quickly execute commands on other routers without transmitting or storing passwords in the configuration, falling back to the older RSH technology might be applicable here. RSH works by establishing trusted connections without authentication, so you need to be careful about how you allow it to connect and what you allow it to do, but it might be just what you need.
Have a look at this link for further information and don't worry about the RCP portion. 
Configuring a Router to Use rsh and rcp

Similar Messages

  • How to get i books onto another device

    how do I get my ibooks onto my 1st generation ipad from my other ipad

    As long as both iPads use the same Apple ID, it should be easy. But you can't move books to another device that's not registered to the original account that purchased the book. There is no book sharing.

  • Ipod touch email error logged onto another device

    Ive had my Ipod for awhile now, and this happened one time, on one of my email accounts in my ipod, it said I believe not able to
    get email, because it is logged into another device, I wasnt on any im program, or even logged into the email itself
    I hit refresh and my email was back up again on my ipod, any idea why this happened, but only once

    Well, wait: did you just delete the "iTunes Library" file, or the whole iTunes folder?
    If you only deleted the "iTunes Library" file, then your stuff should still be on your hard drive. If not, then you probably don't. This is the biggest reason to keep frequent backups of your computer.
    Now, if you deleted all of your media, you may be able to nicely write that Apple Support guys, and they may be able to give you "re-download grant". They did for me... I lost all of my purchases and I wrote them, and the let me download my stuff. (She did say they can't normally do this... That was my one shot to do that.) Be ready though, if they let you do this: it'll start downloading all of your purchases at once, once you start.
    Now, remember, even if you're frustrated, *be nice!* If you're rude at all they probably won't let you.
    Hope this helps, and make sure you keep good backups!

  • Downloading purchased movies onto another device

    I just bought a new MacBook Pro and want to download movies that I have purchsed on my account on a different device. I can doanload music that I have purchased but can't download movies. How do I do this?

    You don't. You will need to transfer the video files from your old computer. The movie studios do not allow re-downloading of movies.

  • Adding another iPod - can I avoid upgrading to iTunes 6?

    My wife has a Mini and we are using iTunes 4.90.17 + iPod Updater 2006-06-26 + QT 6.52 on a XP Pro/SP2 machine with NIS 2005. The Mini is set for manual control and everything works fine right now.
    I just got a Nano and don't want to risk all the problems I've been reading about on this board (and elsewhere). How can I add the Nano to the system without upgrading to iTunes 6 and QT 7? Can I just plug in the Nano and have the 6-26-2005 version of iPod Updater set up the Nano, or do I need to use the Updater version that came with the Nano?
    We just move music to the iPods manually and don't have time to fix any serious problems. Any ideas?
    Thanks,

    hi Sarah!
    Can I just plug in the Nano and have the 6-26-2005 version of iPod Updater set up the Nano, or do I need to use the Updater version that came with the Nano?
    I just checked my copy of 2005-06-26, and it doesn't contain iPod nano Software 1.0. probably best to download, install and run a copy of iPod Updater 2005-10-12 from Apple for the nano setup:
    http://www.apple.com/ipod/download/
    keep us posted.
    love, b

  • If I purchase the in-app content for GarageBand on one computer, could that purchase be transferred onto another device? Or would I have to repurchase the content on the new computer?

    I have a Mac desktop computer and will be getting a MacBook Pro within the next year. I don't want to purchase the in-app content if I won't be able to transfer it to my new computer. Any help is appreciated.

    The in-app purchase will be tied to your Apple-ID.  You can download and install again any software you bought from the App Store on any computer you own or control and are using with the same Apple ID (for private purposes).
    When you buy the in-app purchase now on your Deskop computer, you can use the menu command "GarageBand > Restore Purchase" on your second Mac to obtain the purchase.
    See:  Expanding GarageBand for Mac (v10.0) content with an in-app purchase
    You may need to accept GarageBand 10.0 to your AppleID first on your Macs: 
    GarageBand for Mac (v10.0): Unable to complete in-app purchase

  • My laptop died so I've installed itunes onto another PC and my music is all on an external hardive which is connected to the new PC. How can I sync my ipod with the new itunes and get all the music onto itunes?

    My laptop died so I've installed itunes onto another PC and my music is all on an external hardive which is connected to the new PC. How can I sync my ipod with the new itunes and get all the music onto itunes?

    You might consider itunes match for moving CDs you've copied into your itunes library if you dont have a way to use home sharing.
    iTunes match is an optional service offered by apple that costs about $25 a year.  It scans your music library and if it finds music that is already in apple's itunes catalog it'll automatically "unlock"/"store" these in the cloud for you.  Items that it does not find in the catalog it'll upload and store these in the cloud for you and you can download them on your devices.  See http://www.apple.com/itunes/itunes-match/

  • I deleted my music through the "manage storage" section in the options to make room for the ios update awhile back. Now I can't get any music back onto my device through itunes. (I've tried restoring the device twice to no avail)

    I deleted my music through the "manage storage" section in the options to make room for the ios update awhile back. Now I can't get any music back onto my device through itunes. (I've tried restoring the device twice to no avail)

    Try:
    - iOS: Not responding or does not turn on
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - Try on another computer
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
    Apple Retail Store - Genius Bar       

  • I have an iTunes account where I have downloaded Digital movies & I am able to see the list on the desktop of the original downloads. When I log on another device with my login I do not see my list to access them. Why can't I access from another device

    I have an iTunes account where I have downloaded Digital movies & I am able to see the list on the desktop of the original downloads. When I log on another device with my login I do not see my list to access them. Why can't I access from another device

    Hey GingCarv,
    Great question. You'll want to download the movies from your purchase history. The following article explains how to do so:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    http://support.apple.com/kb/HT2519
    Note: At this time, movies are not available for automatic downloads.
    Thanks,
    Matt M.

  • Can I access an iTunes purchase on a pc on another devices, on my iPad by logging into my iTunes account?

    Can I access an iTunes purchase made on a pc....on another device(iPad) ?

    Tv show, music can be seen under the purchased section in the iPad itunes app.
    If connected to wifi you can download them, music can also be downloaded on 3G.
    Apps can be seen under purchased in the app store and downloaded.
    Movies cannot be accessed due to licensing restrictions.

  • I have 3 devices on 1 Apple ID.  If I download an app on 1 it appears on all 3.  Can I avoid this or can I delete on 2 without impacting the other?

    I have 3 devices on 1 Apple ID.  If I download an app on 1, it appears on all 3.  Can I avoid this or can I delete on 2 of them without losing it on the 3rd?

    Turn off automatic downloads to stop it from automatically downloading.
    You can delete from the other two.  It has no effect on the others.

  • HT2589 I already have 2 devices on one apple ID account and want to add apple TV.  How do I add another device on an existing apple ID account so that I can download movies from the cloud to any of 3 devices?

    how do I add another device on to my apple ID account so that I can download movies etc.. from my icloud to any of the 3 devices on the account?   I already have my iphone and ipad on the account and for some reason my 3rd device (apple TV) dropped off.   If you can help, greatly appreciated!!

    Hello there, HannaGriffin.
    Since the Apple TV (1st Generation) is the only one that has storage, I would recommend the following Knowledge Base articles for troubleshooting issues with authorization:
    Apple TV (1st generation) may not play content purchased from the iTunes Store
    http://support.apple.com/kb/ts1359
    or
    Apple TV (1st generation): Apple TV repeatedly asks for password to play iTunes Store rentals or purchases
    http://support.apple.com/kb/ts2845
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro D.

  • How can I switch my apple I'd email address on my ipad to my gmail account that was associated to another device I own?

    How can I switch my apple I'd email address on my ipad to my gmail account that was associated to another device I own?
    I lost the other device so I don't even have it, and I want to terminate the email account I am currently using.

    settings --> Store --> Apple ID.

  • Is there a way to get around the pop up, "this device is already associated with an Apple ID. You can download past purchases on this device with just one Apple ID every 90 days. This device can be used with another Apple ID in 13 days."Someonehelp please

    Is there a way to get around the pop up, "this device is already associated with an Apple ID. You can download past purchases on this device with just one Apple ID every 90 days. This device can be used with another Apple ID in 13 days."Someonehelp please!

    What exactly are you trying to do?

  • How can I use Bluetooth with another devices?

    How can I use Bluetooth with another devices?

    You can set up your FaceTime account in Settings > FaceTime.

Maybe you are looking for

  • Blank Line in a query

    How to add a blank line in a query and it does not have to zeros... thanks

  • Error in uploading the data using BDC

    Hi All, I developed a BDC to upload the data for Infotype-0195.When I am trying to upload the flatfile using Functional Module option I am getting the error Invalid Date Format. Can anyone please help me out giving the solution.......... Thanks in ad

  • How to give the details of delivery and billing on the same row in alv

    i want delivery and billing no i.e vbeln and quantity for billing and delivery for category 'J' and 'M'   for corresponding sale order Nothing is displayed while executing only the heading is displayed but in the debugger got the values for all how t

  • Splitting an array

    Hi guys, I am trying to modify a program at work with LabVIEW, but I am only a beginner at it so I am having a few problems. Basically, it is a data acquisition program that gets it data from accelerometors. The data is read using the AI read functio

  • F4 Help for Presentation Server Folder Name .

    Hi Experts, I want show the F4 help on the presentation server. If the file is selected REquirement is that , on clicking the F4, the dialog box should open. If we choose the file , then file should be selected , but if we select the folder then fold