Comware Based
cancel
Showing results for 
Search instead for 
Did you mean: 

How open ssh from Solaris box to 4400 switch?

 
bvictor
Occasional Visitor

How open ssh from Solaris box to 4400 switch?

I upgraded ios on 4400 switch and want to establish ssh session from Solaris 10 box to the switch.

System summary from the switch:



Zeus/bvictor14:16:40~$telnet megaera

Trying 172.20.20.130...

Connected to megaera.spbatlas.

Escape character is '^]'.



Login: bvictor

Password:



Menu options: --------------3Com SuperStack 3 Switch 4400---------------

bridge - Administer bridge-wide parameters

feature - Administer system features

gettingStarted - Basic device configuration

logout - Logout of the Command Line Interface

physicalInterface - Administer physical interfaces

protocol - Administer protocols

security - Administer security

system - Administer system-level functions

trafficManagement - Administer traffic management



Type ? for help

-------------------------------------Megaera (1)------------------------

Select menu option: sys sum

3Com SuperStack 3

System Name : Megaera

Location : Shpalernaya,26 3-th floor RIM

Contact : Victor Belous t.211



Time Since Reset : 332 Hrs 27 Mins 10 Seconds

Current system time : 2009-03-02T14:16:54

Operational Version : 6.13s (strong encryption)

Hardware Version : 03.02.00

Boot Version : 2.02

MAC Address : 00-0a-04-5d-e0-80

SNMPv3 Engine-Id : 0000002b03000a045de08000

Product Number : 3C17204

Serial Number : 7NPV1D75DE080



Module Slot 1 : 3C17224 Cascade module H/w ver: 1.0

Module Slot 2 : No module fitted



Select menu option: l



exiting session....

Connection to megaera.spbatlas closed by foreign host.



debug output from the ssh session



Zeus/bvictor14:17:00~$ssh megaera

debug1: Rhosts Authentication disabled, originating port will not be trusted.

debug1: ssh_connect: needpriv 0

debug1: Connecting to megaera port 22.

debug1: Connection established.

debug1: identity file /export/home/bvictor/.ssh/identity type 0

debug1: identity file /export/home/bvictor/.ssh/id_rsa type 1

debug1: identity file /export/home/bvictor/.ssh/id_dsa type -1

debug1: Remote protocol version 2.0, remote software version IPSSH-1.8.0

debug1: no match: IPSSH-1.8.0

debug1: Enabling compatibility mode for protocol 2.0

debug1: Local version string SSH-2.0-Sun_SSH_1.2

debug1: SSH2_MSG_KEXINIT sent

debug1: SSH2_MSG_KEXINIT received

debug1: kex: server->client 3des-cbc hmac-sha1 none

debug1: kex: client->server 3des-cbc hmac-sha1 none

debug1: Peer sent proposed langtags, ctos:

debug1: Peer sent proposed langtags, stoc:

debug1: We proposed langtags, ctos: ru-RU

debug1: We proposed langtags, stoc: ru-RU

debug1: dh_gen_key: priv key bits set: 194/384

debug1: bits set: 530/1024

debug1: sending SSH2_MSG_KEXDH_INIT

debug1: expecting SSH2_MSG_KEXDH_REPLY

debug1: Host 'megaera' is known and matches the DSA host key.

debug1: Found key in /export/home/bvictor/.ssh/known_hosts:33

debug1: bits set: 519/1024

debug1: ssh_dss_verify: signature correct

debug1: SSH2_MSG_NEWKEYS sent

debug1: expecting SSH2_MSG_NEWKEYS

debug1: SSH2_MSG_NEWKEYS received

debug1: done: ssh_kex2.

debug1: send SSH2_MSG_SERVICE_REQUEST

debug1: got SSH2_MSG_SERVICE_ACCEPT

debug1: Authentications that can continue: password

debug1: Next authentication method: password

bvictor@megaera's password:

debug1: Authentication succeeded (password)

debug1: channel 0: new

debug1: send channel open 0

debug1: Entering interactive session.

debug1: ssh_session2_setup: id 0

debug1: channel request 0: env

debug1: channel request 0: env

debug1: channel request 0: env

debug1: channel request 0: env

debug1: channel request 0: env

debug1: channel request 0: env

debug1: channel request 0: env

debug1: channel request 0: pty-req

debug1: channel request 0: shell

debug1: fd 4 setting TCP_NODELAY

debug1: channel 0: open confirm rwindow 65536 rmax 16384

debug1: channel_free: channel 0: client-session, nchannels 1

Connection to megaera closed by remote host.

Connection to megaera closed.

debug1: Transferred: stdin 0, stdout 0, stderr 77 bytes in 0,0 seconds

debug1: Bytes per second: stdin 0,0, stdout 0,0, stderr 4188,2

debug1: Exit status -1

Zeus/bvictor14:17:25~$



and ssh client config



Zeus/bvictor14:17:25~$cat /etc/ssh/ssh_config

# Copyright (c) 2001 by Sun Microsystems, Inc.

# All rights reserved.

#

# ident "@(#)ssh_config 1.2 01/10/08 SMI"

#

# This file provides defaults for ssh(1).

# The values can be changed in per-user configuration files $HOME/.ssh/config

# or on the command line of ssh(1).



# Configuration data is parsed as follows:

# 1. command line options

# 2. user-specific file

# 3. system-wide file /etc/ssh/ssh_config

#

# Any configuration value is only changed the first time it is set.

# host-specific definitions should be at the beginning of the

# configuration file, and defaults at the end.



# Example (matches compiled in defaults):

#

Host megaera

# Protocol 1

ForwardAgent no

ForwardX11 no

GatewayPorts no

ForwardX11Trusted no

PubKeyAuthentication no

UseRsh no

FallBackToRsh no

Compression no

KeepAlive no

LogLevel DEBUG1

PreferredAuthentications password

GSSAPIAuthentication no

GSSAPIDelegateCredentials no

GSSAPIKeyExchange no

HostbasedAuthentication no

# AllowTCPForwarding yes

GatewayPorts no

Compression no

ConnectionAttempts 2

DisableBanner yes

BatchMode no

RhostsAuthentication no

RhostsRSAAuthentication no

ServerAliveCountMax 0

ServerAliveInterval 0

StrictHostKeyChecking ask

UsePrivilegedPort no

Host *

ForwardAgent yes

ForwardX11 yes

PubkeyAuthentication yes

# PasswordAuthentication yes

# FallBackToRsh no

# UseRsh no

# BatchMode no

# CheckHostIP yes

# StrictHostKeyChecking ask

# EscapeChar ~

Zeus/bvictor14:20:15~$



and ssh-client putty easy login to the switch without any additional tuning.



How I must change the ssh_config for opening ssh session with the 3com switch?



Victor





victor
victor
2 REPLIES
dewi.griffiths
Occasional Visitor

Re: How open ssh from Solaris box to 4400 switch?

have you tried specifying the username on the command line? I know with our 4200G switches we had to do this with ssh from our linux hosts.



ssh bvictor@megaera





bvictor
Occasional Visitor

Re: How open ssh from Solaris box to 4400 switch?

I tried your suggestion. This is result



Zeus/bvictor09:35:27~/??????? ????$ssh bvictor@megaera

debug1: Rhosts Authentication disabled, originating port will not be trusted.

debug1: ssh_connect: needpriv 0

debug1: Connecting to megaera port 22.

debug1: Connection established.

debug1: identity file /export/home/bvictor/.ssh/identity type 0

debug1: identity file /export/home/bvictor/.ssh/id_rsa type 1

debug1: identity file /export/home/bvictor/.ssh/id_dsa type -1

debug1: Remote protocol version 2.0, remote software version IPSSH-1.8.0

debug1: no match: IPSSH-1.8.0

debug1: Enabling compatibility mode for protocol 2.0

debug1: Local version string SSH-2.0-Sun_SSH_1.2

debug1: SSH2_MSG_KEXINIT sent

debug1: SSH2_MSG_KEXINIT received

debug1: kex: server->client 3des-cbc hmac-sha1 none

debug1: kex: client->server 3des-cbc hmac-sha1 none

debug1: Peer sent proposed langtags, ctos:

debug1: Peer sent proposed langtags, stoc:

debug1: We proposed langtags, ctos: ru-RU

debug1: We proposed langtags, stoc: ru-RU

debug1: dh_gen_key: priv key bits set: 200/384

debug1: bits set: 511/1024

debug1: sending SSH2_MSG_KEXDH_INIT

debug1: expecting SSH2_MSG_KEXDH_REPLY

debug1: Host 'megaera' is known and matches the DSA host key.

debug1: Found key in /export/home/bvictor/.ssh/known_hosts:33

debug1: bits set: 506/1024

debug1: ssh_dss_verify: signature correct

debug1: SSH2_MSG_NEWKEYS sent

debug1: expecting SSH2_MSG_NEWKEYS

debug1: SSH2_MSG_NEWKEYS received

debug1: done: ssh_kex2.

debug1: send SSH2_MSG_SERVICE_REQUEST

debug1: got SSH2_MSG_SERVICE_ACCEPT

debug1: Authentications that can continue: password

debug1: Next authentication method: password

bvictor@megaera's password:

debug1: Authentication succeeded (password)

debug1: channel 0: new

debug1: send channel open 0

debug1: Entering interactive session.

debug1: ssh_session2_setup: id 0

debug1: channel request 0: env

debug1: channel request 0: env

debug1: channel request 0: env

debug1: channel request 0: env

debug1: channel request 0: env

debug1: channel request 0: env

debug1: channel request 0: env

debug1: channel request 0: pty-req

debug1: channel request 0: shell

debug1: fd 4 setting TCP_NODELAY

debug1: channel 0: open confirm rwindow 65536 rmax 16384

debug1: channel_free: channel 0: client-session, nchannels 1

Connection to megaera closed by remote host.

Connection to megaera closed.

debug1: Transferred: stdin 0, stdout 0, stderr 77 bytes in 0,0 seconds

debug1: Bytes per second: stdin 0,0, stdout 0,0, stderr 4082,1

debug1: Exit status -1

Zeus/bvictor09:36:06~/??????? ????$



No change.



Any suggestions else?

victor
victor