'SSH'에 해당되는 글 4건

  1. 2020.05.27 [SSH] port 22: Connection refused
  2. 2020.02.26 [AWS] ssh tunneling on ec2
  3. 2016.08.03 [Bash Script] ssh 접속 시 hostname 기준으로 편하게 사용하기.
  4. 2013.04.03 [ssh] mac os x 에서 ssh 연결 사용하기.

[SSH] port 22: Connection refused

ITWeb/개발일반 2020. 5. 27. 14:32

$ sudo vi /etc/ssh/sshd_config

Port 22

 

$ sudo /etc/init.d/ssh restart

[ ok ] Restarting ssh (via systemctl): ssh.service.

 

:

[AWS] ssh tunneling on ec2

ITWeb/개발일반 2020. 2. 26. 08:33

AWS Linux 로 EC2 생성을 했을 경우)

$ ssh -i key.pem ec2-user@hostname

 

AWS  Ubuntu 로 EC2 생성을 했을 경우)

$ ssh -i key.pem ubuntu@hostname

:

[Bash Script] ssh 접속 시 hostname 기준으로 편하게 사용하기.

ITWeb/개발일반 2016. 8. 3. 14:37

그냥 노가다 입니다.

ssh 접속 할때 dev/stage/prod 환경으로 각각 접속 할때 hostname 기준으로 하다 보면 매번 입력하기 귀찮은데요.

기억도 나지 않고, 그래서 노가다 스크립트 하나 만들었습니다.


변형해서 사용하거나 그냥 하드코딩 하거나 맘대로 사용하세요.


#!/bin/bash


SUFFIX='web'


echo '1) stage-web'

echo '2) prod-web'

... 중략


read choice


case $choice in

  1)

    SUFFIX='web'

    ;;

  2)

    SUFFIX='irc'

    ;;

... 중략

    ;;

  *)

    echo 'Choice number.'

    exit;

esac


echo "Connecting to ssh {PREFIX-NAME}-$SUFFIX"

sleep 1

ssh {PREFIX-NAME}-$SUFFIX


:

[ssh] mac os x 에서 ssh 연결 사용하기.

ITWeb/Hadoop일반 2013. 4. 3. 15:52

아래 링크 가면 나와 있습니다.

http://osxdaily.com/2011/09/30/remote-login-ssh-server-mac-os-x/



Using Remote Login to Start the SSH Server in Mac OS X

These instructions are the same for OS X 10.7 Lion and 10.6:

  • Open System Preferences and click on “Sharing”
  • Select the checkbox next to “Remote Login” to enable it, like the screenshot above


: