본문 바로가기

반응형

SSH

SSH 호스트 키 확인 실패(Host key verification failed) SSH 호스트 키 확인 실패(Host key verification failed) $ ssh-copy-id vagrant@172.17.0.3 /usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "/home/vagrant/.ssh/id_rsa.pub" /usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed /usr/bin/ssh-copy-id: ERROR: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ ERROR: @ WARNING: REM.. 더보기
리눅스에서 특정 사용자 또는 그룹에 대한 SSH 액세스를 허용하거나 거부하는 방법 (SSH 액세스 권한 부여) 리눅스에서 특정 사용자 또는 그룹에 대한 SSH 액세스를 허용하거나 거부하는 방법 (SSH 액세스 권한 부여) 사용자 액세스 권한을 제어 AllowGroups : 지정된 그룹에 속한 사용자에게 SSH 액세스 권한을 부여합니다. AllowUsers : 지정된 사용자에게 SSH 액세스 권한을 부여합니다. DenyGroups : 지정된 그룹에 속한 사용자에게 SSH 액세스 권한을 거부합니다. DenyUsers : 지정된 사용자에게 SSH 액세스 권한을 거부합니다. 1. SSH 액세스 부여 사용자에게 SSH 액세스를 부여하려면 sshd_config 파일을 수정해야 합니다. 기본적으로 모든 사용자는 SSH 액세스를 받을 수 있습니다. 만약 모든 사용자에게 SSH 액세스를 부여하려면 아무 작업이 필요하지 않습니다... 더보기
AWS EC2 Linux 인스턴스에 SecureCRT를 사용하여 SSH 접속 시 발생하는 오류 AWS EC2 Linux 인스턴스에 SecureCRT를 사용하여 SSH 접속 시 발생하는 오류 SecureCRT 오류 The client has disconnected from the server. Reason: Unable to authenticate using any of the configured authentication methods. "Unable to authenticate using any of the configured authentication methods" 오류는 SecureCRT를 사용하여 AWS EC2 Linux 인스턴스에 SSH로 접속할 때 발생할 수 있는 일반적인 문제입니다. 이 오류를 해결하기 위해 다음과 같은 단계를 따를 수 있습니다. SSH 키 페어 생성 AWS EC2 .. 더보기
ssh 접속 오류 해결 방법(no hostkey alg) ssh 접속 오류(no hostkey alg) 해결 방법 "no hostkey alg" 에러는 원격 서버에 SSH 연결을 시도할 때 발생하는 경우가 일반적입니다. 이 오류 메시지는 원격 서버가 SSH 클라이언트에서 제공하는 호스트 키 알고리즘을 지원하지 않음을 나타냅니다. 대부분의 경우 이 문제는 클라이언트 측에서 해결할 수 있습니다. 테스트 환경 node1 통신 방향 node2 비고 역할 Client -> Server 운영체제 CentOS 6.3 Ubuntu 22.04 LTS sshd(ssh server) 버전 OpenSSH_5.3p1 OpenSSH_8.9p1 SSH 접속 테스트 및 sshd 설정 편집 node1 ssh 버전 정보 확인 $ ssh -V OpenSSH_5.3p1, OpenSSL 1.0.0.. 더보기
SecureCRT에서 SSH 키 교환 알고리즘 설정과 관련된 오류 SecureCRT에서 SSH 키 교환 알고리즘 설정과 관련된 오류 sshd[1543]: userauth_pubkey: key type ssh-rsa not in PubkeyAcceptedAlgorithms [preauth] 이 오류는 서버 및 클라이언트 간의 SSH 키 교환 알고리즘 설정에 관련된 문제를 나타냅니다. 테스트 환경 SSH Client(SecureCRT) SSH Server $ lsb_release -d Description: Ubuntu 22.04.1 LTS ssh server 로그 확인 tail -f /var/log/auth.log tail -f /var/log/auth.log ... Feb 20 00:51:45 ip-10-201-9-166 sshd[1543]: userauth_pubke.. 더보기
ssh 접속 시 no matching key exchange method found 에러 ssh 접속 시 no matching key exchange method found 에러 테스트 환경 $ cat /etc/redhat-release CentOS release 5.6 (Final) $ getconf LONG_BIT 32 $ openssl version OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008 $ ssh -V OpenSSH_4.3p2, OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008 [에러] Unable to negotiate with 192.168.0.101 port 22: no matching key exchange method found. Their offer: diffie-hellman-group-exchange-sha1,diffie-h.. 더보기
[aws] ec2 인스턴스(Amazon Linux 2)에 stormssh 설치 및 설정하기 ec2 인스턴스(Amazon Linux 2)에 stormssh 설치 및 설정하기 stormssh 설치 pip(pip2) 경로 확인 $ which pip3 /usr/bin/pip3 pip3 명령으로 stormssh 설치 pip3 install stormssh $ /usr/bin/pip3 install stormssh WARNING: Running pip install with root privileges is generally not a good idea. Try `pip3 install --user` instead. Collecting stormssh Downloading stormssh-0.7.0.tar.gz (90 kB) |████████████████████████████████| 90 kB 1.9.. 더보기
SSH를 통해 파일을 압축하여 복사하는 방법 SSH를 통해 파일을 압축하여 복사하는 방법 SSH를 통해 파일을 압축하여 복사하기 위해 scp와 tar 명령어를 사용할 수 있습니다. 아래는 해당 방법의 예시입니다. 1. 원격 서버의 파일 압축하여 로컬로 복사하기 원격 서버에서 파일 압축하기 ssh user@remote_host "tar czf - /path/to/remote/file" > local_file.tar.gz 로컬에서 압축 파일 열기 tar xzf local_file.tar.gz 위의 예시에서 user는 원격 서버에 접속하기 위한 사용자 이름이고, remote_host는 원격 서버의 호스트 이름 또는 IP 주소입니다. /path/to/remote/file은 원격 서버에서 압축할 파일의 경로입니다. local_file.tar.gz는 로컬에 .. 더보기

728x90
반응형