Home > Enterprise >  How can I configure the host of my remote server?
How can I configure the host of my remote server?

Time:09-09

I try to see all my remote banches with:

git fetch --all

I get the error message:

The authenticity of host 'meinserver.de (111.222.3.444)' can't be established.

But 'meinserver.de' is not the correct name of my host. It is actually 'mylovelyhost.de' where can I change the host settings?

This is my .ssh/config file:

UserKnownHostsFile coding/.ssh/known_hosts

# lovely

Host mylovelyhost
User mylovelyuser
HostName mylovelyhost.de
Port 22
IdentityFile ~/.ssh/id_ed12345

CodePudding user response:

You can adapt this command :

git remote set-url <name-of-the-remote> <mylovelyhost.de[...].git>
  • Related