How to verify the ssh version on NetScaler

How to verify the ssh version on NetScaler

book

Article ID: CTX217697

calendar_today

Updated On:

Description

To confirm NetScaler will communicate on which ssh version


Instructions

Verify through cat /etc/sshd_config that ssh protocol 2 is enabled. Also we verify by logging in to the device using ssh v1 and it will gave us the error configuration is not provided by the server.

root@netscaler# cat /etc/sshd_config

Port 22

ListenAddress 0.0.0.0

ListenAddress ::

Protocol 2  <<<<<<<<<<<<<<<<   shows that it will only accept Protocol 2 connections


To verify this, try to ssh to device with SSHv1 checked:

User-added image

When you will ssh to NetScaler with version 1, you will get below error:
User-added image

To verify from command line
****************************************
> shell
Copyright (c) 1992-2013 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
        The Regents of the University of California. All rights reserved.

root@ns# ssh -1 nsroot@<NSIP>
Protocol major versions differ: 1 vs. 2
root@ns# ssh -2 nsroot@<NSIP>
The authenticity of host '10.107.148.164 (10.107.148.164)' can't be established.
RSA key fingerprint is 61:01:da:f9:7b:67:c2:d8:1c:24:ef:fc:41:82:11:9b.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '10.107.148.164' (RSA) to the list of known hosts.
###############################################################################
#                                                                             #
#        WARNING: Access to this system is for authorized users only          #
#         Disconnect IMMEDIATELY if you are not an authorized user!           #
#                                                                             #
###############################################################################

Password: XXXXXXXX
 

 

 

 

 

 

 

 

 

 

Issue/Introduction

This article guides how to verify the ssh version on NetScaler