Answer the question
In order to leave comments, you need to log in
How not to confuse vps servers when there are a lot of them?
At work, the number of vps with which I work is gradually growing. Right now I'm actively working on 7 vps with different content. And I'm afraid of accidentally turning off or deleting something on the wrong vps. What are the ways to make the servers more different from each other when working via ssh or when viewing files via sftp.
And then it happened to me more than once that I was on the wrong vps rules files or something else. So far, everything has worked out, but sooner or later I can confuse a test vps with a combat one. Especially when you consider that I often work in the evenings when I am no longer so attentive due to lack of sleep.
Answer the question
In order to leave comments, you need to log in
I just print the name of the server in the terminal along with the username. I gave each server its own color to make it easier to navigate.
https://gist.github.com/alexey-m-ukolov/aa90f79598...
How exactly do you confuse them? IP? Use ~/.ssh/config . Change the hostname on each server so that you can see exactly where you are in the terminal.
PS I work with 20+ different servers and stupid hostname helps not to confuse the server.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question