Amazon Lightsail에서 WordPress 관리자 계정 설정하기

Categories ,

관리자 패스워드 찾기

Amazon Lightsail로 WordPress를 설치 하신 경우 IP를 통해 관리자 페이지에 접속 시 관리자 패스워드를 못찾으실 겁니다.

bitmani를 통해 Lightsail 상에 WordPress가 자동 설치 되기 때문에 bitmani에서 관리자 패스워드까지 임의로 지정을 해 줍니다.

bitmani의 관리자 패스워드를 확인하기 위해서는 Lightsail 인스턴스를 관리 콘솔을 통해 접속해 봅니다.

인스턴스 콘솔 클릭

인스턴스 목록에서 >_ 아이콘(터미널 접속)을 클릭하면 새로운 팝업창으로 콘솔창이 생성됩니다.

lightsail 터미널 접속

이 방법은 SSH 키를 통하지 않고 직접 접속이 가능한 방법으로 웹상에서 간단히 접속이 가능합니다.
Putty 등의 터미널 프로그램 사용시에는 SSH 키가 반드시 필요하니 유의하시기 바랍니다.

터미널에 접속 후 아래 명령어를 입력해 줍니다.

cat bitnami_application_password
bitnami 패스워드 확인

명령어 입력시 위와 같은 문자열 형태의 패스워드가 출력되게 됩니다. 이 값을 생성한 사이트의 관리자 페이지에서 입력하면 관리자 페이지에 접속이 가능해 집니다.

bitnami 뱃지 제거하기

터미널에 접속한 김에 IP로 접속하였을때 우측 하단의 bitmani 아이콘도 제거해 보기로 합니다.

sudo /opt/bitnami/apps/wordpress/bnconfig --disable_banner 1 sudo /opt/bitnami/ctlscript.sh restart apache

bitnami의 뱃지 아이콘을 제거하고 아파치를 재가동 하는 명령어 입니다.

bitnami 뱃지 제거

위의 작업 까지 하셨으면 이제 관리자 페이지를 접속해 봅니다.

관리자 계정 접속하기

관리자 페이지는 http://발급 IP/login 로 뒤에 /login만 붙여주시면 됩니다.

관리자 로그인

사용자명은 bitmani의 경우 user로 보통 사용되기에 user를 입력해 주시고
암호부분에 위의 터미널에서 발급받은 문자열을 넣어주면 로그인이 됩니다.

로그인 하신 후에 보안을 위해 Default로 생성된 계정인 user를 삭제 하신 후 다른 계정으로 관리자 계정을 생성 및 지정해 주시는게 좋습니다.

로그인 페이지인 /login 으로 접속하여 user라는 계정이라는 것 까지 모든 사람들에게 노출된 상태이기 때문에 패스워드만 알면 관리자 계정 탈취당하는건 시간 문제입니다.

보통 워드프레스 사이트 공격 시 무차별 대입 공격(BRUTE FORCE)으로 널리 알려진 정보들을 조합하여 지속적으로 로그인이 될 때 까지 시도하기 때문에 조금이나마 보안을 생각하신다면 user계정 접속하신 후에 신규 생성 후 user는 삭제하시는 편이 좋습니다.

신규 관리자 계정 생성 및 user 계정 제거하기

관리자 페이지 접속 후 사용자 메뉴로 들어가 추가버튼을 누릅니다.

관리자 계정 추가

사용자 명과 이메일을 필수로 작성해 주시고 암호표시를 클릭하셔서 암호지정까지 해주시면 됩니다. 역할 선택을 관리자로 지정하시고 새로운 사용자를 추가 버튼을 누르시면 새로운 관리자 계정이 생성 됩니다.

신규 관리자 생성이 완료되었으면 로그아웃 후에 신규 관리자로 로그인 하시고 사용자의 모든 사용자 메뉴에서 기존의 user 계정을 삭제하시면 완료됩니다.

9 thoughts on “Amazon Lightsail에서 WordPress 관리자 계정 설정하기”

  1. Long time supporter, and thought I’d drop a comment.

    Your wordpress site is very sleek – hope you don’t mind me asking what theme you’re using?
    (and don’t mind if I steal it? :P)

    I just launched my site –also built in wordpress
    like yours– but the theme slows (!) the site down quite a bit.

    In case you have a minute, you can find it by searching for
    on Google (would appreciate any feedback) – it’s still in the works.

    Keep up the good work– and hope you all take care
    of yourself during the coronavirus scare!

    ~Alex

    응답
    • Hi, Alex
      I visited your site. but it was not bad and it was good.
      I‘m using the wordpress theme generatepress.
      it’s very light and faster than theme with many plugins.
      I will post the theme and plugins, CSS settings, etc. that I use.
      Please find it often and watch out for the corona virus.
      best regards.

      응답
  2. continuously i used to read smaller articles or reviews that also clear their motive,
    and that is also happening with this paragraph which I am reading here.

    응답
  3. It is perfect time to make a few plans for the longer term and it is time
    to be happy. I’ve read this put up and if I could I want to
    suggest you few fascinating issues or tips.

    Maybe you can write next articles regarding this article.
    I wish to read more things about it!

    응답
  4. Nice blog! Is your theme custom made or did you download it from somewhere?

    A design like yours with a few simple adjustements would really make my blog stand out.
    Please let me know where you got your design. With thanks

    응답
  5. Hi are using WordPress for your site platform? I’m new to the blog world but I’m
    trying to get started and create my own. Do you require any html coding knowledge to make your own blog?
    Any help would be greatly appreciated! asmr 0mniartist

    응답

Leave a Comment