cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1629
Views
5
Helpful
1
Replies

SSH: Could not get a vty line for incoming session

Hi All,

I'm having a strange issue setting up a 887 when I'm trying to set it up for ssh access.

starting from an erase startup and reload I enter the following commands 

Router#conf t

Router(config)#hostname test-rtr

test-rtr(config)#ip domain-name dom.ain

test-rtr(config)#username cisco password cisco

test-rtr(config)#enable secret 0 cisco

test-rtr(config)#int vlan 1

test-rtr(config-if)#ip add

test-rtr(config-if)#ip address 172.17.2.75 255.255.255.128

test-rtr(config-if)#no sh

test-rtr(config)#crypto key generate rsa modulus 1024

% Generating 1024 bit RSA keys, keys will be non-exportable...

[OK] (elapsed time was 1 seconds)

test-rtr(config)#

*Aug 5 14:45:41.995: %SSH-5-ENABLED: SSH 1.99 has been enabled

test-rtr(config)#ip ssh ver

test-rtr(config)#ip ssh version 2

test-rtr(config)#line vty 0 15

test-rtr(config-line)#transport pre

test-rtr(config-line)#transport preferred ssh

test-rtr(config-line)#logi

test-rtr(config-line)#login local

So once all that is done. 

I run debug ip ssh 

when I try to login to the device by ssh I get 

*Aug  5 14:49:46.827: SSH: Could not get a vty line for incoming session

Has anyone seen what I'm missing here ?

Thanks

Mark 

1 Reply 1

Never mind found my problem,

On lines vty 0 15 I had accidentally left the the config as 

transport input none

having forgot to set it to 

transport input ssh

Somedays you gotta take a break to see the wood from the trees and on other days you gotta ask for directions from a friend