본문 바로가기

Redmine

원격 서버에 있는 phpmyadmin접속하기

반응형

mysql DB의 관리를 위해 필요한 phpmyadmin.

근데 원격 서버에 접속하려고 하니 아래와 같은 메시지가 나오면서 권한이 없다고 나온다.

 

"For security reasons, this URL is only accesible using localhost (127.0.0.1) as the hostname"

For security reasons, this URL is only accesible using localhost (127.0.0.1) as the hostname

이런경우 접속하는 방법

 

1. Windows cmd 창을 띄운다.

 

2. cmd창에서 아래의 명령을 실행한다.

      ssh -L 8888:localhost:80 접속계정@접속서버주소

ssh -L 8888:localhost:80 root@aaa.domain.com

 

3. 해당서버에 접속 비밀번호를 입력한다.

The authenticity of host 'csr.renglobal.co.kr (14.63.175.181)' can't be established.
RSA key fingerprint is SHA256:0oM4XpsmRO5zxLp6YAwAh.
This key is not known by any other names
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added 'aaa.domain.com' (RSA) to the list of known hosts.
userid@aaa.domain.com's password:  비번입력
Welcome to Ubuntu 12.04.1 LTS (GNU/Linux 3.2.0-34-generic-pae i686)

 * Documentation:  https://help.ubuntu.com/
New release '14.04.6 LTS' available.
Run 'do-release-upgrade' to upgrade to it.

 

4. 해당서버에 SSH로 접속되면 인터넷브라우저를 실행해 phpmyadmin 주소를 입력하면 해당 사이트로 연결이 된다.

대신 포트를 8888로 변경해서 입력해야 한다.

   다음과 같이 원격 서버에 있는 phpmyadmin 에 접속된다.

http://localhost:8888/phpmyadmin/

- 이상이다 -

반응형