1. Open the config file of sshd

# vi /etc/ssh/sshd_config

 

2. Change "UseDNS Yes" to "UseDNS no" and save the file

#UseDNS Yes

=>

UseDNS no

 

3. Restart the sshd

# service sshd restart

stopping sshd :                                           [  OK  ]
starting sshd :                                             [  OK  ]

'Knowledge > OS' 카테고리의 다른 글

snmp 기본설정  (0) 2015.06.24
centos 부팅 과정중 sendmail 서비스 시작 늦게 되는 현상  (0) 2015.01.19
cp 주의사항  (0) 2015.01.14
mount directory to directory  (0) 2015.01.14
lsof command 간단 사용법  (0) 2014.12.31
Posted by neo-orcl
,

cp 주의사항

Knowledge/OS 2015. 1. 14. 13:31

cp 진행시 권한과 오너가 바뀐다

이를 방지하려면 -a 혹은 --preserve=all 을 사용한다.

 

       -a, --archive
      same as -dR --preserve=all

       --preserve[=ATTR_LIST]
      preserve the   specified   attributes (default:  mode,owner-
      ship,timestamps), if possible  additional attributes:  context,
      links, xattr, all

Posted by neo-orcl
,

다른 디렉토리를 링크(ln -s)를 통해 연결시 ftp에서 제대로 접근할 수 없는 문제가 있다.

마운트를 통해 설정하면 이 문제가 없어진다.

 

1. 마운트

mount --bind <source_dir> <dest_dir>

 

2. /etc/fstab 수정

/sourcedir           destdir      none bind 0 0

'Knowledge > OS' 카테고리의 다른 글

ssh 접속이 id 입력 후 느린 경우 해결(centos)  (0) 2015.01.16
cp 주의사항  (0) 2015.01.14
lsof command 간단 사용법  (0) 2014.12.31
Cacti Installation by yum on CentOS5  (0) 2014.07.22
RHEL 4 or 5 recommended kernel parameters  (0) 2013.08.12
Posted by neo-orcl
,