IanMK2 Blog

에러:
Git클론 중 발생

Cloning into 'androidsasebo'...
The server's host key is not cached in the registry. You
have no guarantee that the server is the computer you
think it is.
The server's rsa2 key fingerprint is:
ssh-rsa 2048 97:8c:1b:f2:6f:14:6b:5c:3b:ec:aa:46:46:74:7c:40
Connection abandoned.
fatal: The remote end hung up unexpectedly
 
해결:
putty로 bitbucket.org에 접속시도로 해결(로그인불필요) 
Posted by IanMK2
문제 :
FATAL ERROR: Disconnected: No supported authentication methods available
fatal: The remote end hung up unexpectedly

윈도우에서 Git로 클론을 할려는데 위와같은 에러가 발생
 
해결 :
 declare -x GIT_SSH="C:\Program Files\Git\bin\ssh.exe"
선언후 재시도 
Posted by IanMK2

분명 아파치내의 웹루트에서는 파일접근이 되고 생성한 하부디렉토리는

퍼미션은 되어있지만 자꾸 forbidden이 떠서 짜증만발

조사해보니 범인은 보안을 강화시키는 목적으로 추가된 SELinux였다.



#chcon -R -t httpd_sys_content_t 디렉토리 

로 해결

후... 
Posted by IanMK2
처음 CentOS를 쓸때 ip를 확인하기위해 ifconfig를 쳐보니
어랏?

"command not found"

-_-?

어..어째서 이게 나오지 않는거지?!
했지만 /sbin안에 있었다. 
 
이걸 바로 명령어를 치면 되도록 수정해보자

#vi /etc/profile

맨 마지막에

export PATH="$PATH:/sbin"
를 추가하자 

재시작하거나

#source /etc/profile
로 설정을 다시 리로드

끗 
Posted by IanMK2
아파치와 텔넷을 위해 iptables를 수정하자

 
# vi /etc/sysconfig/iptables



# Firewall configuration written by system-config-securitylevel
# Manual customization of this file is not recommended.
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:RH-Firewall-1-INPUT - [0:0]
-A INPUT -j RH-Firewall-1-INPUT
-A FORWARD -j RH-Firewall-1-INPUT
-A RH-Firewall-1-INPUT -i lo -j ACCEPT
-A RH-Firewall-1-INPUT -p icmp --icmp-type any -j ACCEPT
-A RH-Firewall-1-INPUT -p 50 -j ACCEPT
-A RH-Firewall-1-INPUT -p 51 -j ACCEPT
-A RH-Firewall-1-INPUT -p udp --dport 5353 -d 224.0.0.251 -j ACCEPT
-A RH-Firewall-1-INPUT -p udp -m udp --dport 631 -j ACCEPT
-A RH-Firewall-1-INPUT -p tcp -m tcp --dport 631 -j ACCEPT

# 텔넷 23  아파치 80
-A RH-Firewall-1-INPUT -p tcp -m tcp --dport 23 -j ACCEPT
-A RH-Firewall-1-INPUT -p tcp -m tcp --dport 80 -j ACCEPT

-A RH-Firewall-1-INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
-A RH-Firewall-1-INPUT -j REJECT --reject-with icmp-host-prohibited
COMMIT
위와같이 라인을 삽입 후 저장
#/etc/init.d/iptables restart
ipatables 재시작
Posted by IanMK2