Ms7 Search
Google 搜尋 翻譯
calendar
« 二月 2025 »
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28    
近期文章
文章分類
網站連結
Syndicate

« | »

ssh 設定 chroot 的方法

2015-05-27 @ 19:21 in Linux

openssh 4.8p1以後,chroot功能已經被內置了,使用方法如下:
1.建立 chroot 環境 dir.sh
2.建立可用指令環境 cmd.sh
3.建立使用者 user.sh
4.修改 /etc/ssh/sshd_config 的設定
Match User foo
ChrootDirectory /var/chroot

也可以Match Group,舉例如下:
Match Group sftponly
    PasswordAuthentication yes
    AllowAgentForwarding no
    AllowTcpForwarding no
    ChrootDirectory /var/chroot
網上看到有加 %u =>  ChrootDirectory /var/chroot/%u測試結果錯誤,將 %u取消才可以

參考自 : http://blog.sina.com.cn/s/blog_6e0c0fdf01019zw5.html

迴響

ssh 設定 chroot 的方法 | 豬窩

Inspiring story there. What occurred after? Take care!

作者 http://GabrielaHeriford.bravesites.com @ 23:24, 2017-05-14

ssh 設定 chroot 的方法 | 豬窩

Hello there, You've done a great job. I will definitely digg it and
personally recommend to my friends. I'm confident they will be benefited from this website.

作者 xiaorecupero.weebly.com @ 08:28, 2017-05-19

ssh 設定 chroot 的方法 | 豬窩

Thanks to my father who told me about this website, this web
site is genuinely remarkable.

作者 comfort shoe @ 18:52, 2017-06-08

ssh 設定 chroot 的方法 | 豬窩

We're a gaggle of volunteers and opening a brand new scheme in our
community. Your web site provided us with valuable info to work on.
You have done a formidable process and our whole neighborhood will
be grateful to you.

作者 foot pain and numbness @ 17:42, 2017-06-21

ssh 設定 chroot 的方法 | 豬窩

I drop a comment whenever I especially enjoy a post
on a site or I have something to valuable to contribute to the conversation. Usually it is triggered by the sincerness communicated in the post I read.
And after this article ssh 設定 chroot 的方法 | 豬窩.
I was actually excited enough to drop a comment :-) I actually do have a few questions for
you if it's allright. Could it be only me or do a few of
these remarks look as if they are left by brain dead individuals?
:-P And, if you are posting on other online sites, I would like to keep
up with you. Could you list every one of all your public
pages like your twitter feed, Facebook page or linkedin profile?

作者 foot pain map @ 03:13, 2017-06-22
1 2 3 4 5 6 7  下一篇»
發表迴響
 authimage