Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

Ciscoworks topology services ssh

In topology services you can configure a ssh client like eg. putty, when a file is created in the users profile directory in a file named "campusmgr.properties"

When I try to configure CecureCRT in this file like: "CMSSH=C:\\PROGRA~1\\SecureCRT\\SecureCRT.EXE" this tool the ssh client starts with a error message: Connection to session <username>@<ip adress> failed: Hostname lookup failed: no ip adres associated to hostname.

It looks like the @ causes the problem, but Ciscoworks adds this automatically to the ip adres of the device you want to connect to.

Does anyone know how to configure this the right way? Much appreciated.

3 REPLIES
Cisco Employee

Re: Ciscoworks topology services ssh

Your SSH program needs to be able to support that notation. This works with OpenSSH, Data Fellows SSH, and PuTTY. I'm not sure if there is a way of teaching SecureCRT to accept that syntax.

New Member

Re: Ciscoworks topology services ssh

Hi,

If you want to use the SecureCRT from Topology Services call the following script from CMSSH. ( CMSSH=SSHStart.vbs)

Dim WSHShell

Dim UsernameAndHost, Username, Hostname, kukachelye, hossza

Set WshShell = WScript.CreateObject("WScript.Shell")

If Wscript.Arguments.Count > 0 Then

UsernameAndHost = Wscript.arguments.Item(0)

kukachelye = instr ( UsernameAndHost, "@" )

hossza = Len ( UsernameAndHost )

Username = ( Left (UsernameAndHost, kukachelye - 1 ) )

Hostname = ( Right (UsernameAndHost, hossza - kukachelye ) )

WSHShell.Run "SecureCRT.EXE /SSH2 /L " + Username + " " + Hostname

End If

New Member

Re: Ciscoworks topology services ssh

Works like a dream! Thanks a lot.

304
Views
0
Helpful
3
Replies
CreatePlease login to create content