V
V
Victor2016-06-15 05:10:00
linux
Victor, 2016-06-15 05:10:00

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

3 answer(s)
A
Alexey Ukolov, 2016-06-15
@Levhav

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...

A
Andrey Shubin, 2016-06-15
@idegree

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.

D
Dadilo, 2016-06-15
@Dadilo

https://github.com/gravitational/teleport

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question