How to access SSH server through GIT Bash

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

+7
git git-bash
source share
2 answers

ssh user@server -p <port> works, at least for me.

+14
source share

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 ~/

 ssh brian@123.456.789 -p 2200 -i brianssh 
0
source share

All Articles