you are viewing a single comment's thread.

view the rest of the comments →

[–]Nietzsche_at_last 3 insightful - 1 fun3 insightful - 0 fun4 insightful - 1 fun -  (1 child)

if i understood the problem corectly, i think SSH config file is made for that. you can give entries to machines with users you want to use and what auth to use and so on: Host dev HostName dev.example.com Port 22000 User fooey

"ssh dev" is enough to type then. look it up there are many guides online.

[–]dissent[S] 1 insightful - 1 fun1 insightful - 0 fun2 insightful - 1 fun -  (0 children)

That is even better than I'd imagined. Thank you so much!

https://linuxize.com/post/using-the-ssh-config-file/