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 29 30        
近期文章
文章分類
網站連結
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 的方法 | 豬窩

Hey I know this is off topic but I was wondering if you knew of any widgets I could add to my blog that automatically tweet
my newest twitter updates. I've been looking for a plug-in like this for quite some time and was hoping maybe you would have some experience with something like this.
Please let me know if you run into anything. I truly enjoy reading your blog and
I look forward to your new updates.

作者 g @ 05:46, 2020-06-17

ssh 設定 chroot 的方法 | 豬窩

Thanks for finally writing about >ssh 設定 chroot
的方法 | 豬窩

作者 g @ 18:06, 2020-06-17

ssh 設定 chroot 的方法 | 豬窩

Hurrah, that's what I was exploring for, what a material!
existing here at this webpage, thanks admin of this web page.

作者 rsacwgxy g @ 18:41, 2020-06-22

ssh 設定 chroot 的方法 | 豬窩

cbd oil that works 2020
Howdy! I'm at work browsing your blog from my new apple iphone!

Just wanted to say I love reading your blog and
look forward to all your posts! Carry on the
great work! best rated cbd oil http://t.co/4kPhN7Ek0L cbd oil that works 2020
http://t.co/4kPhN7Ek0L

作者 http://t.co/4kPhN7Ek0L @ 11:10, 2020-06-24

ssh 設定 chroot 的方法 | 豬窩 | 5

Hi everybody, here is an good post on 7 Mac Tips You Never Knew You Needed.
Feel free to repost. https://int3gr.it/BWmY

作者 Apple @ 18:42, 2023-01-09
發表迴響
 authimage