-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SFTP Not working #50
Comments
You need to allow it with the "-c arg allow" option in sudosh.conf. |
case matters, try something like
or whatever the path is on your host. |
Ok added that in sudosh.conf and result is the same error |
what OS and version is your host? I can try to recreate your scenario. |
OS : Ubuntu 20 VERSION="20.04.6 LTS |
This works for me on Ubuntu 20.04:
|
Have you tried login via WinScp ? I've the same thing in sudosh.conf not able to login . Aravindan R |
I do not have Windows to test WinSCP but I have did test with Filezilla in sftp mode as well as openssh command line. Make sure sudosh is listed in /etc/shells also. |
Okay , sudosh was listed in /etc/shells . Seems like Filezilla doesn't support MFA based authentication . My Set up as like below Key Based Login ( Which has Password enabled ) + MFA |
MFA is likely where your problem is happening, can you share your MFA config for openssh and I can try to set up a test environment? if it is handing it off to another command, you might also try |
Key Based Login ( Which has Password enabled ) + MFA is working Normally when I take SSH Session , but when I taken via SFTP(Winscp) things are not working .
-- |
It may be a bit before i'm able to create this environment, in the mean time please test with the * arg and see if that helps. |
Ok , tried with below syntax and still no luck -c arg allow= * |
Change the shell to sudosh for an user , post that he cant able to do SFTP via WinSCP , any alternative solution available for that ?
--
Aravindan R
The text was updated successfully, but these errors were encountered: