- Community Home
- >
- Networking
- >
- IMC
- >
- Specific SSH port does not work
-
- Forums
-
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
- HPE Blog, Austria, Germany & Switzerland
- Blog HPE, France
- HPE Blog, Italy
- HPE Blog, Japan
- HPE Blog, Middle East
- HPE Blog, Russia
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
-
Blogs
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Blog, Latin America
- HPE Blog, Middle East
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
-
Information
- Community
- Welcome
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Tips and Tricks
- Resources
- Announcements
- Email us
- Feedback
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Aruba Airheads Community
- Enterprise.nxt
- HPE Dev Community
- Cloud28+ Community
- Marketplace
-
Forums
-
Blogs
-
Information
-
English
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
08-29-2014 03:38 AM
08-29-2014 03:38 AM
Specific SSH port does not work
Hello community!
I'm trying to run tcl script (to backup device) on a non-standard SSH port. I run IMC 7 under Windows 2012.
The specific port is well defined for the device, the problem is that the session initiated with plink.exe does not take the port variable.
In the ssh_sftp_client.cfg, I can find:
-----------------------
ssh-cmd = plink.exe [-i $key-file] $user-name@$device-ip
sftp-cmd = psftp.exe [-i $key-file] $user-name@$device-ip
-----------------------
So, even if I define the specific SSH port for the device, it should have a "-P [$port]" option to take care of it.
I've tried unsuccessfully many variables name ($port, $device-port, ...). I've checked in the binary file to find a variable name, but no success.
Is anyone know how to acheive it ?
Thanks!
- Tags:
- ssh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
08-29-2014 11:25 PM
08-29-2014 11:25 PM
Re: Specific SSH port does not work
I had a bit of a hunt around, and I could only find a couple of possibilities for variable name - ssh_port, or sshPort.
The interesting thing is that if you run 'strings' on imccfgbakdm, you can see the SQL commands that include retrieving the ssh_port value. So theoretically it should be able to handle it.
I think you should log a support case with HP about this, as it seems like something it should be able to do.
It looks like it definitely won't work for any of the SCP adapters - e.g. the CiscoIOSGeneric SCP adapter contains lines like this:
spawn pscp -scp $username@$deviceip:running-config $FileName
So that won't ever take a port value, and it probably also needs updating.
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2021 Hewlett Packard Enterprise Development LP