a*******e 发帖数: 3021 | 1 俺想用得很简单,
就是给一个用户一个ssh能登陆上去,啥都干不了
ssh登陆上去就是为了用tunnel做proxy用
那位给俺个jail的例子? | r****t 发帖数: 10904 | 2 改默认 shell 成 /dev/null 行么?
【在 a*******e 的大作中提到】 : 俺想用得很简单, : 就是给一个用户一个ssh能登陆上去,啥都干不了 : ssh登陆上去就是为了用tunnel做proxy用 : 那位给俺个jail的例子?
| d****e 发帖数: 251 | 3 On ubuntu or debian, this works:
sudo adduser --no-create-home --shell /bin/false dummyuser
Such a user can only be used for forwarding ports (use the option: -N).
【在 a*******e 的大作中提到】 : 俺想用得很简单, : 就是给一个用户一个ssh能登陆上去,啥都干不了 : ssh登陆上去就是为了用tunnel做proxy用 : 那位给俺个jail的例子?
| a*******e 发帖数: 3021 | 4 this is really useful and what i wanted.
But how do i config Putty to do it?
Currently what i am doing is:
With Putty, setup a ssh connection to my home linux box, login with a user
In SSH-Tunnel, I set as D9999.
But with this dummyuser, everytime i login, i lost the connection.
【在 d****e 的大作中提到】 : On ubuntu or debian, this works: : sudo adduser --no-create-home --shell /bin/false dummyuser : Such a user can only be used for forwarding ports (use the option: -N).
| a*******e 发帖数: 3021 | 5 ahhhh, i figured it out
Enable SSH - "Don't start a shell or command at all", should be equivalent
to -N
Thanks a lot.
【在 a*******e 的大作中提到】 : this is really useful and what i wanted. : But how do i config Putty to do it? : Currently what i am doing is: : With Putty, setup a ssh connection to my home linux box, login with a user : In SSH-Tunnel, I set as D9999. : But with this dummyuser, everytime i login, i lost the connection.
|
|