Check and config SSHv1 or SSHv2 on GAIA (2024)

Check and config supported SSH protocol version.

Method One

If you want to check what SSH protocol version are supported by a local OpenSSH server, you can refer to/etc/ssh/sshd_configfile. Open /etc/ssh/sshd_config with a vi editor and look for "Protocol" field. You can also config the version over this parameter. If you change the paarameter so you should restart sshd.

If it shows the following, it means that OpenSSH server supports SSH2 only.

Protocol 2

If it displays the following instead, OpenSSH server supports both SSH1 and SSH2.

Protocol 1,2


Method Two

If you cannot access /etc/ssh/sshd_config because OpenSSH server is running on a remote server, you can test its SSH protocol support by using SSH client program calledssh. More specifically, we forcesshto use a specific SSH protocol, and see how the remote SSH server responds.

The following command will forcesshcommand to use SSH1

#ssh -1 user@remote_server

If the remote SSH server supports SSH2 only, the first command with "-1" option will fails with an error message like this:

#ssh -2 user@remote_server

➜ CCSM Elite, CCME, CCTE

Check and config SSHv1 or SSHv2 on GAIA (2024)
Top Articles
Latest Posts
Article information

Author: Msgr. Refugio Daniel

Last Updated:

Views: 5953

Rating: 4.3 / 5 (54 voted)

Reviews: 85% of readers found this page helpful

Author information

Name: Msgr. Refugio Daniel

Birthday: 1999-09-15

Address: 8416 Beatty Center, Derekfort, VA 72092-0500

Phone: +6838967160603

Job: Mining Executive

Hobby: Woodworking, Knitting, Fishing, Coffee roasting, Kayaking, Horseback riding, Kite flying

Introduction: My name is Msgr. Refugio Daniel, I am a fine, precious, encouraging, calm, glamorous, vivacious, friendly person who loves writing and wants to share my knowledge and understanding with you.