简体   繁体   中英

I can not connect to my host with git bash

I am trying to perform a Deployment with git, when I enter the command in the git bach console it gives me the following error

Ssh: connect to host loupper.com port 22: Connection timed out

To access my server I have always used port 21, I already added the 2 keys to my cpanel and I have authorized them. Investigating found that for other hosting services the command could be

Ssh -p 22 root@123.456.789.123

In which the port, the username and the domain are specified, but in that case the console stays static and gives no response, which could be failing?

To connect to your server with ssh, you need to have openssh running on your server and to open the port 22 in your firewall. Connection timed out means that openssh is not running, or that your port is blocked.

If you are familiar with FTP (which uses the port 21) you can setup your deployment using the ftp protocol instead of ssh. It is not recommended because it is less secure, but it is possible if you didn't understand my first sentence.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM