°Ô½Ã¹° 259°Ç
   
[Redhat] ssh ¿ø°Ý¿¡¼­ PATH º¸±â
±Û¾´ÀÌ : theko ³¯Â¥ : 2013-09-04 (¼ö) 11:05 Á¶È¸ : 2892
1) # vi /etc/ssh/sshd_config
PermitUserEnvironment yes  # ¿ÞÂÊ°ú °°ÀÌ »ç¿ëÀÚ È¯°æÀ» »ç¿ëÇÑ´Ù°í ¼³Á¤ÇÑ´Ù.

2) user »ç¿ëÀÚÀÇ ~/.ssh/environment ÆÄÀÏ¿¡ ´ÙÀ½À» Ãß°¡ÇÑ´Ù.
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin

3) sshd¸¦ restart ½ÃŲ´Ù.
# /etc/init.d/sshd restart


À̸§ Æнº¿öµå
ºñ¹Ð±Û (üũÇÏ¸é ±Û¾´À̸¸ ³»¿ëÀ» È®ÀÎÇÒ ¼ö ÀÖ½À´Ï´Ù.)
¿ÞÂÊÀÇ ±ÛÀÚ¸¦ ÀÔ·ÂÇϼ¼¿ä.
   

miwit.com sir.co.kr DNS Powered by DNSEver.com DNS Powered by DNSEver.com