You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 29, 2023. It is now read-only.
So I'd suggest to add a new element in Machine spec, with "root" as the default value, like this:
// Machine is a single machine.typeMachinestruct {
spec*config.Machine// container name.namestring// container hostname.hostnamestring// container ip.ipstring// container user, defaults to "root".userstringruntimeNetworks []*RuntimeNetwork// Fields that are cached from the docker daemon.portsmap[int]int// maps containerPort -> hostPort.
}
I found that the SSH pub key is hardcoded to be in
/root/.sshwhich indicates that the SSH user is actuallyroot.In this case, if I run
footloose sshwithout specifying the user, likefootloose ssh root@host xxx, the user will be retrieved by current OS user, which doesn't make sense in most of the cases:https://github.com/weaveworks/footloose/blob/master/ssh.go#L37-L51
So I'd suggest to add a new element in Machine spec, with "root" as the default value, like this:
What do you think?