<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "限制某個帳號只能從某個IP來SSH登入或SFTP/SCP"]]></title>
		<link>https://forum.andowson.com/posts/list/16.page</link>
		<description><![CDATA[Latest messages posted in the topic "限制某個帳號只能從某個IP來SSH登入或SFTP/SCP"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>限制某個帳號只能從某個IP來SSH登入或SFTP/SCP</title>
				<description><![CDATA[ 最近公司的資安政策修改了，要求需要限制帳號只能從特定來源IP來登入主機，要達成這個目標可以透過修改sshd的設定檔/etc/ssh/sshd_config加入下列設定到適當位置 
<br>
[code=text]AllowUsers user1@source_ip1 user2@source_ip2[/code] 
<br>
兩個以上的帳號中間用空白隔開，如果來源IP是某個網段，最後一碼可以用*表示，例如 
<br>
[code]AllowUsers user1@192.168.1.1 user2@192.168.2.*[/code] 
<br>
<br>
適當位置是指需要放在Match的設定之前 
<br>
<br>
設定完成後需要重新啟動sshd 
<br>
[code]service sshd restart[/code]]]></description>
				<guid isPermaLink="true">https://forum.andowson.com/posts/preList/638/1331.page</guid>
				<link>https://forum.andowson.com/posts/preList/638/1331.page</link>
				<pubDate><![CDATA[Sat, 22 Aug 2015 15:14:01]]> GMT</pubDate>
				<author><![CDATA[ andowson]]></author>
			</item>
	</channel>
</rss>