cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
310
Views
3
Helpful
3
Replies

Trouble with ssh on a Mac to a Cisco router

darthgarlic1
Level 1
Level 1

C-Kermit 9.0.302 OPEN SOURCE:, 20 Aug 2011, for macOS 11.1 (64-bit)

Copyright (C) 1985, 2011,

Trustees of Columbia University in the City of New York.

Type ? or HELP for help.

(/Users/edwardstafford/Library/Application Support/MacWise/kermit/Update/) C-Ker mit>set telnet terminal-type vt100 (/Users/edwardstafford/Library/Application Support/MacWise/kermit/Update/) C-Ker mit>set terminal idle-timeout 60 (/Users/edwardstafford/Library/Application Support/MacWise/kermit/Update/) C-Ker mit>set terminal idle-action telnet-nop (/Users/edwardstafford/Library/Application Support/MacWise/kermit/Update/) C-Ker mit>cd / (/) C-Kermit>cd users/edwardstafford/Documents (/Users/edwardstafford/Documents/) C-Kermit>mkdir kermit_transfers (/Users/edwardstafford/Documents/) C-Kermit>cd kermit_transfers

(/Users/edwardstafford/Documents/kermit_transfers/)

C-Kermit>ssh GATEWAY -l admi n -p 22 Connecting via command "ssh -e none GATEWAY -l admin -p 22" Escape character: Ctrl-\ (ASCII 28, FS): enabled Type the escape character followed by C to get back, or followed by ? to see other options. ---------------------------------------------------- Communications disconnect

1 Accepted Solution

Accepted Solutions

Unable to negotiate with 192.168.1.1 port 22: no matching key exchange method found. Their offer: diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
edwardstafford@Mac ~ %

You have cipher issue between MAC and Device 

may be try below steps :

https://www.volico.com/wiki/pages/viewpage.action?pageId=15728687

https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/sec_usr_ssh/configuration/xe-16/sec-usr-ssh-xe-16-book/sec-secure-shell-algorithm-ccc.html

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

View solution in original post

3 Replies 3

balaji.bandi
Hall of Fame
Hall of Fame

you looking to use kermit to ssh device.

you can use normal SSH to device 

ssh -vv cisco@10.10.10.10

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

This is what I got….



edwardstafford@Mac ~ % ssh -vv admin@192.168.1.1
OpenSSH_9.8p1, LibreSSL 3.3.6
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 21: include /etc/ssh/ssh_config.d/* matched no files
debug1: /etc/ssh/ssh_config line 54: Applying options for *
debug2: resolve_canonicalize: hostname 192.168.1.1 is address
debug1: Authenticator provider $SSH_SK_PROVIDER did not resolve; disabling
debug1: Connecting to 192.168.1.1 [192.168.1.1] port 22.
debug1: Connection established.
debug1: identity file /Users/edwardstafford/.ssh/id_rsa type -1
debug1: identity file /Users/edwardstafford/.ssh/id_rsa-cert type -1
debug1: identity file /Users/edwardstafford/.ssh/id_ecdsa type -1
debug1: identity file /Users/edwardstafford/.ssh/id_ecdsa-cert type -1
debug1: identity file /Users/edwardstafford/.ssh/id_ecdsa_sk type -1
debug1: identity file /Users/edwardstafford/.ssh/id_ecdsa_sk-cert type -1
debug1: identity file /Users/edwardstafford/.ssh/id_ed25519 type -1
debug1: identity file /Users/edwardstafford/.ssh/id_ed25519-cert type -1
debug1: identity file /Users/edwardstafford/.ssh/id_ed25519_sk type -1
debug1: identity file /Users/edwardstafford/.ssh/id_ed25519_sk-cert type -1
debug1: identity file /Users/edwardstafford/.ssh/id_xmss type -1
debug1: identity file /Users/edwardstafford/.ssh/id_xmss-cert type -1
debug1: identity file /Users/edwardstafford/.ssh/id_dsa type -1
debug1: identity file /Users/edwardstafford/.ssh/id_dsa-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_9.8
debug1: Remote protocol version 2.0, remote software version Cisco-1.25
debug1: compat_banner: match: Cisco-1.25 pat Cisco-1.* compat 0x60000000
debug2: fd 3 setting O_NONBLOCK
debug1: Authenticating to 192.168.1.1:22 as 'admin'
debug1: load_hostkeys: fopen /Users/edwardstafford/.ssh/known_hosts: No such file or directory
debug1: load_hostkeys: fopen /Users/edwardstafford/.ssh/known_hosts2: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug2: local client KEXINIT proposal
debug2: KEX algorithms: sntrup761x25519-sha512@openssh.com,curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256,ext-info-c,kex-strict-c-v00@openssh.com
debug2: host key algorithms: ssh-ed25519-cert-v01@openssh.com,ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,sk-ssh-ed25519-cert-v01@openssh.com,sk-ecdsa-sha2-nistp256-cert-v01@openssh.com,rsa-sha2-512-cert-v01@openssh.com,rsa-sha2-256-cert-v01@openssh.com,ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ssh-ed25519@openssh.com,sk-ecdsa-sha2-nistp256@openssh.com,rsa-sha2-512,rsa-sha2-256
debug2: ciphers ctos: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com
debug2: ciphers stoc: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com
debug2: MACs ctos: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: MACs stoc: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: compression ctos: none,zlib@openssh.com,zlib
debug2: compression stoc: none,zlib@openssh.com,zlib
debug2: languages ctos:
debug2: languages stoc:
debug2: first_kex_follows 0
debug2: reserved 0
debug2: peer server KEXINIT proposal
debug2: KEX algorithms: diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
debug2: host key algorithms: ssh-rsa
debug2: ciphers ctos: aes128-cbc,3des-cbc,aes192-cbc,aes256-cbc
debug2: ciphers stoc: aes128-cbc,3des-cbc,aes192-cbc,aes256-cbc
debug2: MACs ctos: hmac-sha1,hmac-sha1-96,hmac-md5,hmac-md5-96
debug2: MACs stoc: hmac-sha1,hmac-sha1-96,hmac-md5,hmac-md5-96
debug2: compression ctos: none
debug2: compression stoc: none
debug2: languages ctos:
debug2: languages stoc:
debug2: first_kex_follows 0
debug2: reserved 0
debug1: kex: algorithm: (no match)
Unable to negotiate with 192.168.1.1 port 22: no matching key exchange method found. Their offer: diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
edwardstafford@Mac ~ %

Unable to negotiate with 192.168.1.1 port 22: no matching key exchange method found. Their offer: diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
edwardstafford@Mac ~ %

You have cipher issue between MAC and Device 

may be try below steps :

https://www.volico.com/wiki/pages/viewpage.action?pageId=15728687

https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/sec_usr_ssh/configuration/xe-16/sec-usr-ssh-xe-16-book/sec-secure-shell-algorithm-ccc.html

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Review Cisco Networking for a $25 gift card