ssh: connect to host gw10 port 22: Connection refused
search cancel

ssh: connect to host gw10 port 22: Connection refused

book

Article ID: 225537

calendar_today

Updated On:

Products

CA API Gateway

Issue/Introduction

2 gateways that were running on VM Ware Fusion Pro.

- After upgrade of my Mac to BigSur, Fusion was no longer working and I switched to Player (free).

- I restarted the gateway. For one gateway, I can remotely access it over ssh. But for the other, I have the following error message:

ssh: connect to host gw10 port 22: Connection refused

Yet, the sshd service is running, I have the ssgconfig user listed in /etc/ssh/ssh_allowed_users and the iptables seems to be properly configured (see file attached).

Anywhere else I should look at?

 

Environment

All Supported versions of API Gateway.

Cause

On nonworking gateway "ip a" shows ens33 network interface is being mapped instead eth0 as expected to.

Resolution

1. Turn the Gateway off 

2. Change the MAC address of the network connection used by the VM to the one of ssg_eth0

     To edit a VM MAC address, edit the VM network adapter settings
         1. Shut down the VM.
         2. Navigate to the VM Settings > Network Adapters page for the VM you want to edit
         3. For the network adapter you want to edit, click Edit
         4. Edit the MAC address using the guidelines listed below:

          - Must be unique on the network.
          -  Must begin with the hexadecimal digits 00:50:56.
          - The valid MAC address range is 00:50:56:00:00:00 to 00:50:56:3F:FF:FF.

        5. Click Save Network Adapter.

3.  restart the gateway

Additional Information