git使用ssh,可否禁止看到上層資料 - Linux

By Mary
at 2018-03-17T18:37
at 2018-03-17T18:37
Table of Contents
CentOS 7
Git2.16.2
假設網站是 asus.com
建立一個使用者 asus
把 public key 放到 /home/asus/.ssh/authorized_keys
建立網站資料夾
/home/asus/httpdocs
git 建立成功。可以從本機Windows推送過去。
但是用戶端使用 sftp 連線 (FileZilla),
可以在外面亂逛,例如 /etc/httpd, /etc/init.d ...
這樣是不是怪怪的?
是不是應該限制用戶只能在 /home/asus 裡面?
這是否要用 selinux 才辦的到?
--
Git2.16.2
假設網站是 asus.com
建立一個使用者 asus
把 public key 放到 /home/asus/.ssh/authorized_keys
建立網站資料夾
/home/asus/httpdocs
git 建立成功。可以從本機Windows推送過去。
但是用戶端使用 sftp 連線 (FileZilla),
可以在外面亂逛,例如 /etc/httpd, /etc/init.d ...
這樣是不是怪怪的?
是不是應該限制用戶只能在 /home/asus 裡面?
這是否要用 selinux 才辦的到?
--
Tags:
Linux
All Comments

By Joe
at 2018-03-18T18:55
at 2018-03-18T18:55

By Robert
at 2018-03-20T21:35
at 2018-03-20T21:35

By Jacob
at 2018-03-21T13:38
at 2018-03-21T13:38

By Robert
at 2018-03-26T10:36
at 2018-03-26T10:36

By Sandy
at 2018-03-31T06:19
at 2018-03-31T06:19
Related Posts
ubuntu16因為root空間不足,現在只剩桌面

By Gilbert
at 2018-03-17T11:02
at 2018-03-17T11:02
高中大學物理化學示範實驗適合的LINUX??

By Edith
at 2018-03-17T02:50
at 2018-03-17T02:50
linux下可用line嗎?

By Quintina
at 2018-03-17T01:49
at 2018-03-17T01:49
MySQL 的 error log 問題?

By Kyle
at 2018-03-16T14:52
at 2018-03-16T14:52
WebSocket++ Makefile.txt error

By Noah
at 2018-03-16T14:14
at 2018-03-16T14:14