In my Chromebook's Linux container's servers directory, each provider has its own subdirectory, inside of which each server has its own directory.
The individual server directories each have a file named login. The first line of each login file (output by head -n 1) is the IPv4 ssh login command and the last line of each login file (output by tail -n 1) is the IPv6 ssh login command.
As long as I am in the right directory, and using sh or bash, I almost always can log in by ssh to any server with the same two keystrokes: Ctrl+r (reverse search through previous commands) and then backtick (`).
As you know, the backticks tell sh and bash to run as a command the output of what is between the backticks.
Of course, as you know, ssh has it's own built-in shortcut procedure that can be set up in a configuration file.
Comments
Wow, that
got me confused for a bit. Had never thought you could use it in that context.
Hi @cmeerw!
In my Chromebook's Linux container's servers directory, each provider has its own subdirectory, inside of which each server has its own directory.
The individual server directories each have a file named login. The first line of each login file (output by head -n 1) is the IPv4 ssh login command and the last line of each login file (output by tail -n 1) is the IPv6 ssh login command.
As long as I am in the right directory, and using sh or bash, I almost always can log in by ssh to any server with the same two keystrokes: Ctrl+r (reverse search through previous commands) and then backtick (`).
As you know, the backticks tell sh and bash to run as a command the output of what is between the backticks.
Of course, as you know, ssh has it's own built-in shortcut procedure that can be set up in a configuration file.
Thanks!
Tom
I hope everyone gets the servers they want!
Hopefully cmeerw's fix gets into NetBSD 11 so I could finally see a login prompt on my Linveo Intel VM
It is working amazingly on FreeBSD though and the uptime has been impeccable.