|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper “Build Web 2.0 Applications Without Hand-Coding” Download now! |
|
#1
|
|||
|
|||
|
how to make sshd to allow scp only?
I want to let my users to upload files to the server using the "ssh files transfer client", but don't want them to get to the shell prompt. How can I do that?
right now I just add a "logout" command at the .bashrc for this type of users, but I think that there's a better way in doing so, right? |
|
#2
|
|||
|
|||
|
Well, since your solution will log them out automatically even when they log in locally - why not just give them an invalid shell (like /bin/false)?
There probably is some way to disallow logins altogether though, but still allow scp |
|
#3
|
|||
|
|||
|
I have tried that before. It didn't work. I got "lost connection" right after scp's login.
The goal is to allow only scp connection either from local or remote. by the way, adding "exit" at the last line of .bashrc works. just wondering if there's a better way. |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > Linux Help > how to make sshd to allow scp only? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|