<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Using jumpssh to ssh into a remote network devices over a windows jumpbox (Windows server 2012 R2 standard) in Controllers</title>
    <link>https://community.cisco.com/t5/controllers/using-jumpssh-to-ssh-into-a-remote-network-devices-over-a/m-p/4095486#M2196</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;You do need to install OpenSSH server on Windows Jumpbox -&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/windows-server/administration/openssh/openssh_install_firstuse" target="_blank"&gt;https://docs.microsoft.com/en-us/windows-server/administration/openssh/openssh_install_firstuse&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 01 Jun 2020 13:45:48 GMT</pubDate>
    <dc:creator>omz</dc:creator>
    <dc:date>2020-06-01T13:45:48Z</dc:date>
    <item>
      <title>Using jumpssh to ssh into a remote network devices over a windows jumpbox (Windows server 2012 R2 standard)</title>
      <link>https://community.cisco.com/t5/controllers/using-jumpssh-to-ssh-into-a-remote-network-devices-over-a/m-p/4095194#M2192</link>
      <description>&lt;P&gt;Does anyone know if python jumpssh library works when the jumpbox is a windows? If you have a working implementation of jumpssh over a windows server jumpbox, I would love to hear your feedbacks and sharing. Do I have to install openssh on the windows jumpbox to make it work?&amp;nbsp;&amp;nbsp;If you have suggestions for other solutions, I would love to hear.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From its documentation, it seems it would only work with a linux jumpbox.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://pypi.org/project/jumpssh/" target="_blank" rel="nofollow noopener noreferrer"&gt;https://pypi.org/project/jumpssh/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Sun, 31 May 2020 23:04:03 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/using-jumpssh-to-ssh-into-a-remote-network-devices-over-a/m-p/4095194#M2192</guid>
      <dc:creator>pn2020</dc:creator>
      <dc:date>2020-05-31T23:04:03Z</dc:date>
    </item>
    <item>
      <title>Re: Using jumpssh to ssh into a remote network devices over a windows jumpbox (Windows server 2012 R2 standard)</title>
      <link>https://community.cisco.com/t5/controllers/using-jumpssh-to-ssh-into-a-remote-network-devices-over-a/m-p/4095219#M2193</link>
      <description>&lt;P&gt;Which part of it is broken? SSH to the jump host itself or after that?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you able to SSH to the Windows jump host manually? (Like a putty or from terminal?)&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jun 2020 02:20:37 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/using-jumpssh-to-ssh-into-a-remote-network-devices-over-a/m-p/4095219#M2193</guid>
      <dc:creator>Manoj Papisetty</dc:creator>
      <dc:date>2020-06-01T02:20:37Z</dc:date>
    </item>
    <item>
      <title>Re: Using jumpssh to ssh into a remote network devices over a windows jumpbox (Windows server 2012 R2 standard)</title>
      <link>https://community.cisco.com/t5/controllers/using-jumpssh-to-ssh-into-a-remote-network-devices-over-a/m-p/4095256#M2194</link>
      <description>&lt;P&gt;Unfortunately, I can't.&amp;nbsp; I got&amp;nbsp;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/53949"&gt;@ssh&lt;/a&gt;_exchange_identification: read: Connection reset by peer, after being hung for a while.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Looking like, I have to talk to the server system admin to see if openssh can be installed on the windows jumpbox.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jun 2020 05:01:40 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/using-jumpssh-to-ssh-into-a-remote-network-devices-over-a/m-p/4095256#M2194</guid>
      <dc:creator>pn2020</dc:creator>
      <dc:date>2020-06-01T05:01:40Z</dc:date>
    </item>
    <item>
      <title>Re: Using jumpssh to ssh into a remote network devices over a windows jumpbox (Windows server 2012 R2 standard)</title>
      <link>https://community.cisco.com/t5/controllers/using-jumpssh-to-ssh-into-a-remote-network-devices-over-a/m-p/4095272#M2195</link>
      <description>&lt;P&gt;Actually, ssh from a local cmd widows to the windows jumpbox works.&amp;nbsp; But doesn't look like ssh is installed on the windows jumpbox, ie, ssh cli command isn't recognized.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jun 2020 05:41:32 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/using-jumpssh-to-ssh-into-a-remote-network-devices-over-a/m-p/4095272#M2195</guid>
      <dc:creator>pn2020</dc:creator>
      <dc:date>2020-06-01T05:41:32Z</dc:date>
    </item>
    <item>
      <title>Re: Using jumpssh to ssh into a remote network devices over a windows jumpbox (Windows server 2012 R2 standard)</title>
      <link>https://community.cisco.com/t5/controllers/using-jumpssh-to-ssh-into-a-remote-network-devices-over-a/m-p/4095486#M2196</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;You do need to install OpenSSH server on Windows Jumpbox -&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/windows-server/administration/openssh/openssh_install_firstuse" target="_blank"&gt;https://docs.microsoft.com/en-us/windows-server/administration/openssh/openssh_install_firstuse&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jun 2020 13:45:48 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/using-jumpssh-to-ssh-into-a-remote-network-devices-over-a/m-p/4095486#M2196</guid>
      <dc:creator>omz</dc:creator>
      <dc:date>2020-06-01T13:45:48Z</dc:date>
    </item>
    <item>
      <title>Re: Using jumpssh to ssh into a remote network devices over a windows jumpbox (Windows server 2012 R2 standard)</title>
      <link>https://community.cisco.com/t5/controllers/using-jumpssh-to-ssh-into-a-remote-network-devices-over-a/m-p/4095711#M2197</link>
      <description>&lt;P&gt;Thanks everyone for your feedbacks.&amp;nbsp; I will look more into this.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jun 2020 20:28:17 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/using-jumpssh-to-ssh-into-a-remote-network-devices-over-a/m-p/4095711#M2197</guid>
      <dc:creator>pn2020</dc:creator>
      <dc:date>2020-06-01T20:28:17Z</dc:date>
    </item>
    <item>
      <title>Re: Using jumpssh to ssh into a remote network devices over a windows jumpbox (Windows server 2012 R2 standard)</title>
      <link>https://community.cisco.com/t5/controllers/using-jumpssh-to-ssh-into-a-remote-network-devices-over-a/m-p/4097513#M2198</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/242765"&gt;@pn2020&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had a little play with jump_ssh .. thought might come handy at some point .. btw .. thanks for sharing &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I used Windows 10 as jumpbox .. installed OpenSSH server -&amp;nbsp;&lt;A href="https://docs.microsoft.com/en-us/windows-server/administration/openssh/openssh_install_firstuse" target="_blank" rel="noopener"&gt;https://docs.microsoft.com/en-us/windows-server/administration/openssh/openssh_install_firstuse&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Simple to code I used to run show ver on remote host.&lt;/P&gt;&lt;PRE&gt;#!/usr/bin/env python

from jumpssh import SSHSession
from getpass import getpass

jumpbox = '172.16.100.13'
rhost = 'sbx-iosxr-mgmt.cisco.com'
juser = input("Jumpbox username: ")
jpass = getpass("Jumpbox password: ")

try:
    jump_session = SSHSession(jumpbox, username=juser, password=jpass).open()
    if jump_session.is_active() == True:
        print()
        print("Connected to jumpbox ... {}".format(jumpbox))
        try:
            remote_session = jump_session.get_remote_session(rhost, 
	                                                 username='admin', 
	                                                 port=8181, 
	                                                 password='C1sco12345', 
	                                                 look_for_keys=False,
	                                                 allow_agent=False,)
            if remote_session.is_active():
                print()
                print("Connected to remote host ... {}\n".format(rhost))
                result = remote_session.run_cmd('sh ver')
                print(result.output)
        except Exception as ex:
            print()
            print("Unable to connect to the remote host ... {}".format(rhost))
            print(ex)
            print()
        jump_session.close()
        print()
        print("Jumpbox connection closed.")
        print() 
except Exception as ex:
    print()
    print("Unable to connect to the jumpbox ... {}".format(jumpbox))
    print(ex)
    print()&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jump.gif" style="width: 593px;"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/76045i67978204DF177E49/image-size/large?v=v2&amp;amp;px=999" role="button" title="jump.gif" alt="jump.gif" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jun 2020 11:55:10 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/using-jumpssh-to-ssh-into-a-remote-network-devices-over-a/m-p/4097513#M2198</guid>
      <dc:creator>omz</dc:creator>
      <dc:date>2020-06-04T11:55:10Z</dc:date>
    </item>
    <item>
      <title>Re: Using jumpssh to ssh into a remote network devices over a windows jumpbox (Windows server 2012 R2 standard)</title>
      <link>https://community.cisco.com/t5/controllers/using-jumpssh-to-ssh-into-a-remote-network-devices-over-a/m-p/4097530#M2199</link>
      <description>&lt;P&gt;Wow, that's awesome, thanks omz for sharing!&amp;nbsp; I will play more with jumpssh.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jun 2020 12:21:27 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/using-jumpssh-to-ssh-into-a-remote-network-devices-over-a/m-p/4097530#M2199</guid>
      <dc:creator>pn2020</dc:creator>
      <dc:date>2020-06-04T12:21:27Z</dc:date>
    </item>
    <item>
      <title>Re: Using jumpssh to ssh into a remote network devices over a windows jumpbox (Windows server 2012 R2 standard)</title>
      <link>https://community.cisco.com/t5/controllers/using-jumpssh-to-ssh-into-a-remote-network-devices-over-a/m-p/4308689#M2200</link>
      <description>&lt;P&gt;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/513338"&gt;@omz&lt;/a&gt;,&amp;nbsp;thanks for sharing ! Solved my problem which uses RHEL linux distro as the jumphost.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I should add, in my case I needed to modify the jump.session sub-method port number from 8181 to 22.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Mar 2021 06:57:21 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/using-jumpssh-to-ssh-into-a-remote-network-devices-over-a/m-p/4308689#M2200</guid>
      <dc:creator>jokey@telstra</dc:creator>
      <dc:date>2021-03-17T06:57:21Z</dc:date>
    </item>
  </channel>
</rss>

