I have a problem accessing another server using GIT Bash.
Now you execute the command in GIT Bash ??
I try, but it always shows an error: bad number
ssh user@server -p <port> works, at least for me.
ssh user@server -p <port>
The command should be as follows if you are connecting to a remote server via SSH with a private key:
ssh <your-user-name>@<server-public-IP-address> -p <port-number> -i <your-local-ssh-private-key-name>
I log into one of my servers with something like this, believe my ssh key is under
/c/Users/brian or ~/
/c/Users/brian
~/
ssh brian@123.456.789 -p 2200 -i brianssh