[Noob] "port 22: Connection refused." Problems to use git under proxy.

Hello everyone.

I am at client s location and I can t acces to my repository.

The problem will be with ssh connections.

The client s connection has a proxy and I don t know how to configure it in git.

What can I do?

Thanks

1 answer

1 vote

Hi Cézar,

It seems the port 22 is not accessible and/or you don't have ssh daemon installed/running.

Could you have a look if port 22 is open, please? As well as that, have a look if the ssh daemon is currenctly running. If not, please start it and try to run your ssh request once again, please.

ssh has 2 main components:

  1. ssh : The command we use to connect to remote machines - the client.
  2. sshd : The daemon that is running on the server and allows clients to connect to the server.

ssh is pre-enabled on Linux, but in order to start sshd daemon, we need to install ssh first. Use this command to do that:

$ sudo apt-get install ssh

This will install ssh on your machine. In order to check if ssh is setup properly do this:

$ which ssh

It will throw this line on your terminal
/usr/bin/ssh

$ which sshd

It will throw this line on your terminal
/usr/bin/sshd

Kind regards,
Rafael

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published 5 hours ago in Agile

What is ChatOps? A guide to its evolution, adoption, and significance

I am the product of AIM. I can hear that door swinging open and closed in my mind with absolute fidelity. I’d recognize that ding anywhere. At 15, as I typed away into AOL IM, I never imagined that ...

20 views 1 5
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you