diff --git a/pkg/srvconn/conn_ssh_su.go b/pkg/srvconn/conn_ssh_su.go index d30e6315..db5e7a86 100644 --- a/pkg/srvconn/conn_ssh_su.go +++ b/pkg/srvconn/conn_ssh_su.go @@ -13,7 +13,8 @@ func LoginToSSHSu(sc *SSHConnection) error { return err } switch cfg.MethodType { - case SuMethodSu, SuMethodSudo: + case SuMethodSu, SuMethodSudo, + SuMethodOnlySudo, SuMethodOnlySu: startCmd := cfg.SuCommand() suService.execCommand = func() { _ = sc.session.Start(startCmd)