I tried to transfer some file from the ANKAN/data directory of the HPC system to the /data/ANKAN directory of the remote CentOS system using the following command line:
scp /ANKAN/data/abc.pdf [email protected]:/data/ANKAN
But, I am getting the following error:
ssh: connect to host 192.168.69.231 port 22: Connection refused
lost connection
I tried all the commands given to the webpage https://phoenixnap.com/kb/ssh-connection-refused, but nothing worked!
For your information, the port number of the HPC (from where I am transferring the files) is 4422. But when I gave the following command in the remote CentOS system:
sudo grep Port /etc/ssh/sshd_config
the following lines are printed:
Port 22
#GatewayPorts no
I don’t have any idea that this could be the main reason or not. Can anyone please help me to solve this issue? That will be really helpful for me. Thank you for your time and consideration.