Skip to Content
VMWARE錦囊妙計第二版
book

VMWARE錦囊妙計第二版

by Ryan Troy, Matthew Helmke
April 2013
Beginner to intermediate
368 pages
6h 45m
Chinese
GoTop Information, Inc.
Content preview from VMWARE錦囊妙計第二版
一般安全性(General Security
|
221
您也可以拒絕特定使用者透過 SSH 直接存取 ESX 伺服器的權限,要做到這一點,請
尋找在
/etc/ssh/sshd_config
文件的
DenyUsers
行列,如果這一行有用
#
註解,請刪除
# 號。如果您沒有看到包含這行資訊,您必須參考範例自行編輯新的行列。在我們的範
例中,我們拒絕
george
todd
tim
及任何使用者名稱以
b
為開頭的使用者存取:
DenyUsers george todd tim b*
請記住,當使用萬用字元(*)在我們範例中,一個名為
bob
的使用者會被拒絕存取,
即使他是列於如下的
AllowUsers
行列內(即拒絕規則優先於允許規則):
AllowUsers tom chris bob sysadmin*
像之前一樣儲存檔案並重新啟動背景程式。
被拒絕的使用者已經被 SSH 登入系統所阻擋,嘗試登入的訊息將被顯示在
/var/log/
messages
檔案內。
6.5 啟用控制台使用者的每日訊息
問題
僅適用於 ESXi 3.5/4.x 您想顯示特定的訊息給嘗試登入伺服器的使用者。
解決方案
於命令列編輯
sshd_config
文件以啟用每日訊息(Message of the dayMOTD)。
討論
當使用者透過 SSH 或是控制台嘗試存取您的伺服器,MOTD 允許您顯示一個留言給使
用者。
在預設的情況下,ESX 伺服器不會在使用者透過 SSH 登入時顯示 MOTD,所以您需要
變更
sshd_config
文件以顯示它。
您首先要做的事情是進入 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

精實企業|高績效組織如何達成創新規模化

精實企業|高績效組織如何達成創新規模化

Jez Humble, Joanne Molesky, Barry O'Reilly
深度學習|內行人的做法

深度學習|內行人的做法

Josh Patterson, Adam Gibson

Publisher Resources

ISBN: 9789862767443