게시물 261건
   
[Redhat] ssh 원격에서 PATH 보기
글쓴이 : theko 날짜 : 2013-09-04 (수) 11:05 조회 : 3722
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