Description

This arcticle describes how to login to the Services Pic when the error messages "vty_connect: Connection refused" is displayed when trying to login to the Services Pics.

Symptoms

When trying to login to the Services Pics, in M7i or M10i the login fail and see the below output:

=========================  

{MASTER}
lab@lab> start shell pfe network cfeb0 

CSBR platform (266Mhz PPC 603e processor, 128MB memory, 512KB flash)

CSBR0(lab vty)# 
CSBR0(lab vty)# 
CSBR0(lab vty)# pty 7 
vty_connect: Connection refused
=========================

Solution

When trying to login to the Services Pic and the "vty_connect: Connection refused" is displayed, it can caused by one of the following reasons:

1. When a user already logged in to the Services Pic, another user canot login consecutivelly.
2. When a user logged into the Service Pic and did not logged out properly from the Service Pics session with CTRL+C closing the CLI window.

In the second case, the CLI session will still be present in the system for the Service Pics, as such, a new users will not be able to login to the Service Pic.

In this case, the only way to login to the Service Pic is to Kill the CLI session which was used to login to the Service Pic:

============================================================= 
{MASTER}
lab@lab> start shell pfe network cfeb0 


CSBR platform (266Mhz PPC 603e processor, 128MB memory, 512KB flash)

CSBR0(lab vty)# 
CSBR0(lab vty)# 
CSBR0(lab vty)# pty 7 
vty_connect: Connection refused

CSBR0(lab vty)# 
CSBR0(lab vty)# 
CSBR0(lab vty)# exit on signal 2
{MASTER}
lab@lab> show system users 
10:34PM  up 9 days,  9:01, 3 users, load averages: 0.44, 0.11, 0.03
USER     TTY      FROM                              LOGIN@  IDLE WHAT
lab      d0       -                                10:18PM     - /usr/sb (vty) 
lab      p0       10.209.192.118                   10:34PM     - -cli (cli)    
lab      p1       10.209.192.118                   10:34PM     - -cli (cli)    

{MASTER}
lab@lab> show system processes extensive | match cli 
14296 lab         1   8    0 20620K 15128K wait     0:00  0.00% cli
14332 lab         1  96    0 20596K 15000K select   0:00  0.00% cli
14328 lab         1  96    0 20596K 14964K select   0:00  0.00% cli

{MASTER}
lab@lab> start shell 
% 
% su
Password:
root@lab% 
root@lab% kill -9 14296                                           < ------ Kill the old cli sessions
root@lab% 
root@lab% 
root@lab% cli
{MASTER}
lab@lab> start shell pfe network cfeb0  


CSBR platform (266Mhz PPC 603e processor, 128MB memory, 512KB flash)

CSBR0(lab vty)# 
CSBR0(lab vty)# pty 7 
Connected.

sp13(atr0)# 
sp13(atr0)# 
=============================================================