Block scp

You can't block scp(1) if you allow ssh(1) access. Even if you could block the command someone could still do [cmd=]cat somefile.txt | ssh me@some.machine[/cmd].

What exactly are you trying to stop from happening?
 
I want to let the user log in only with PuTTY (sh) protocol and do not log in with WinSCP SCP protocol.
 
Or if I can block that user to see only his folder for example to see only /usr/home/test and to can't go to /usr/home.
 
@ Dutch - It should be:
I'll be back (Arnold exits)
after the next OS upgrade,
or buildworld, installworld
and things are back to normal.
[/haiku]
 
WGhetto said:
Yes, but not everyone knows FreeBSD :D

It has nothing to do with FreeBSD. This is basic ssh(1) and UNIX stuff. Anybody could come up with a solution like that.

NB. Don't go removing cat(1). I'm sure I can find other ways and removing cat(1) will most likely break your system.

So, I'll repeat the question. What are you trying to prevent from happening?
 
WGhetto said:
Or if I can block that user to see only his folder for example to see only /usr/home/test and to can't go to /usr/home.

See or modify? The latter can be obtained with permissions, the former does not make sense to me (a user can always see who is accounted to the system and which home it has).
What is your exact aim? Avoid a user to fill remotely an arbitrary directory on the system (could be fixed with proper permissions)? Avoid a user to download other files out of the system? Or what?
 
Back
Top