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 has been 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.
}
What do you think?
The text was updated successfully, but these errors were encountered:
I found that the SSH pub key is hardcoded to be in
/root/.ssh
which indicates that the SSH user is actuallyroot
.In this case, if I run
footloose ssh
without 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?
The text was updated successfully, but these errors were encountered: