|
var potentialShells []string |
Here, if the shell list is read from the system configuration file(/etc/shells), when the client connection come in, take it in reverse order. If it is guessed, take the first one in order, and the experience will be better, because it seems that the list in front of the system configuration is generally It's all sh, a bit too ugly. . ?
reverse_ssh/internal/client/handlers/shell.go
Line 24 in 581c6c5
Here, if the shell list is read from the system configuration file(/etc/shells), when the client connection come in, take it in reverse order. If it is guessed, take the first one in order, and the experience will be better, because it seems that the list in front of the system configuration is generally It's all sh, a bit too ugly. . ?