$ help kill kill: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec] Send a signal to a job.
Send the processes identified by PID or JOBSPEC the signal named by SIGSPEC or SIGNUM. If neither SIGSPEC nor SIGNUM is present, then SIGTERM is assumed.
Options: -s sig SIG is a signal name -n sig SIG is a signal number -l list the signal names; if arguments follow `-l' they are assumed to be signal numbers for which names should be listed
Kill is a shell builtin for two reasons: it allows job IDs to be used instead of process IDs, and allows processes to be killed if the limit on processes that you can create is reached.
Exit Status: Returns success unless an invalid option is given or an error occurs.
시그널(Signal) 종류 및 설명
리눅스 시그널 종류
trap을 이용한 Signal 처리 예제
무한으로 수행되는 쉘 코드로 trap 을 이용한 시그널 처리 동작에 대해 알아보겠습니다.
소개하는 코드는 1 초마다 현재 수행되고 있는 loop.sh 프로세스를 확인하고
CTRL +C 시그널을 포착해서 프로그램을 종료하는 예제입니다.
loop.sh 수행 순서
while loop 수행 : loop count : [1]
사용자 CTRL+C (SIGINT:2 시그널 발생) => _int() 함수 호출 => kill -15 (SIGTERM ) 시그널 발생 =>_term() 함수 호출 => kill -9로 loop.sh 프로세스 종료
LSNRCTL for Linux: Version 19.0.0.0.0 - Production on 20-MAR-2022 13:34:19
Copyright (c) 1991, 2019, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1))) The command completed successfully [oracle@01a4f713764f ~]$ lsnrctl stop
LSNRCTL for Linux: Version 19.0.0.0.0 - Production on 20-MAR-2022 13:34:23
Copyright (c) 1991, 2019, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1))) TNS-12541: TNS:no listener TNS-12560: TNS:protocol adapter error TNS-00511: No listener Linux Error: 2: No such file or directory Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=0.0.0.0)(PORT=1521))) TNS-12541: TNS:no listener TNS-12560: TNS:protocol adapter error TNS-00511: No listener Linux Error: 111: Connection refused [oracle@01a4f713764f ~]$ lsnrctl start
LSNRCTL for Linux: Version 19.0.0.0.0 - Production on 20-MAR-2022 13:34:36
Copyright (c) 1991, 2019, Oracle. All rights reserved.
TNSLSNR for Linux: Version 19.0.0.0.0 - Production System parameter file is /opt/oracle/product/19c/dbhome_1/network/admin/listener.ora Log messages written to /opt/oracle/diag/tnslsnr/01a4f713764f/listener/alert/log.xml Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1))) Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=0.0.0.0)(PORT=1521)))
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1))) STATUS of the LISTENER ------------------------ Alias LISTENER Version TNSLSNR for Linux: Version 19.0.0.0.0 - Production Start Date 20-MAR-2022 13:34:37 Uptime 0 days 0 hr. 0 min. 0 sec Trace Level off Security ON: Local OS Authentication SNMP OFF Listener Parameter File /opt/oracle/product/19c/dbhome_1/network/admin/listener.ora Listener Log File /opt/oracle/diag/tnslsnr/01a4f713764f/listener/alert/log.xml Listening Endpoints Summary... (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1))) (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=0.0.0.0)(PORT=1521))) Services Summary... Service "ORCLCDB" has 1 instance(s). Instance "ORCLCDB", status UNKNOWN, has 1 handler(s) for this service... Service "ORCLPDB1" has 1 instance(s). Instance "ORCLPDB1", status UNKNOWN, has 1 handler(s) for this service... The command completed successfully
리스너 상태 확인
[oracle@01a4f713764f ~]$ lsnrctl status
LSNRCTL for Linux: Version 19.0.0.0.0 - Production on 20-MAR-2022 13:35:44
Copyright (c) 1991, 2019, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1))) STATUS of the LISTENER ------------------------ Alias LISTENER Version TNSLSNR for Linux: Version 19.0.0.0.0 - Production Start Date 20-MAR-2022 13:34:37 Uptime 0 days 0 hr. 1 min. 7 sec Trace Level off Security ON: Local OS Authentication SNMP OFF Listener Parameter File /opt/oracle/product/19c/dbhome_1/network/admin/listener.ora Listener Log File /opt/oracle/diag/tnslsnr/01a4f713764f/listener/alert/log.xml Listening Endpoints Summary... (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1))) (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=0.0.0.0)(PORT=1521))) (DESCRIPTION=(ADDRESS=(PROTOCOL=tcps)(HOST=01a4f713764f)(PORT=5500))(Security=(my_wallet_directory=/opt/oracle/admin/ORCLCDB/xdb_wallet))(Presentation=HTTP)(Session=RAW)) Services Summary... Service "ORCLCDB" has 2 instance(s). Instance "ORCLCDB", status UNKNOWN, has 1 handler(s) for this service... Instance "ORCLCDB", status READY, has 1 handler(s) for this service... Service "ORCLCDBXDB" has 1 instance(s). Instance "ORCLCDB", status READY, has 1 handler(s) for this service... Service "ORCLPDB1" has 2 instance(s). Instance "ORCLCDB", status READY, has 1 handler(s) for this service... Instance "ORCLPDB1", status UNKNOWN, has 1 handler(s) for this service... Service "da8f3910a1110e42e053020012ac8b77" has 1 instance(s). Instance "ORCLCDB", status READY, has 1 handler(s) for this service... The command completed successfully [oracle@01a4f713764f ~]$
sqlplus 접속 확인
[oracle@01a4f713764f ~]$ sqlplus sys/oracle@ora19c as sysdba
SQL*Plus: Release 19.0.0.0.0 - Production on Sun Mar 20 13:37:44 2022 Version 19.3.0.0.0
Copyright (c) 1982, 2019, Oracle. All rights reserved.
Connected to: Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production Version 19.3.0.0.0
oracle-docker@ubuntu2004:~/compose$ docker image ls REPOSITORY TAG IMAGE ID CREATED SIZE oracle/database 19.3.0-ee c711d39c5597 2 hours ago 6.53GB oraclelinux 7-slim 8dd98256c841 10 hours ago 133MB
oracle-docker@ubuntu2004:~/compose$ vi ora19env ORACLE_PWD=oracle ORACLE_SID=orclcdb
docker-compose.yml 작성
env_file : 오라클에서 container 사용하게될 환경 변수 입니다.
image : 빌드를 하게될 오라클 19c 이미지입니다.
ports : 오라클 컨테이너와 통신에 사용하게될 통신 포트 입니다. 설정은 host port: container port 로 작성 합니다.
[oracle-docker@ubuntu2004:/home/oracle-docker/compose]$ docker-compose -f docker-compose.ora19c.yml up Creating network "compose_default" with the default driver Creating ora19c ... done Attaching to ora19c ora19c | ORACLE EDITION: ENTERPRISE ora19c | ora19c | LSNRCTL for Linux: Version 19.0.0.0.0 - Production on 19-MAR-2022 08:09:28 ora19c | ora19c | Copyright (c) 1991, 2019, Oracle. All rights reserved. ora19c | ora19c | Starting /opt/oracle/product/19c/dbhome_1/bin/tnslsnr: please wait... ora19c | ora19c | TNSLSNR for Linux: Version 19.0.0.0.0 - Production ora19c | System parameter file is /opt/oracle/product/19c/dbhome_1/network/admin/listener.ora ora19c | Log messages written to /opt/oracle/diag/tnslsnr/bc698e003576/listener/alert/log.xml ora19c | Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1))) ora19c | Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=0.0.0.0)(PORT=1521))) ora19c | ora19c | Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1))) ora19c | STATUS of the LISTENER ora19c | ------------------------ ora19c | Alias LISTENER ora19c | Version TNSLSNR for Linux: Version 19.0.0.0.0 - Production ora19c | Start Date 19-MAR-2022 08:09:32 ora19c | Uptime 0 days 0 hr. 0 min. 3 sec ora19c | Trace Level off ora19c | Security ON: Local OS Authentication ora19c | SNMP OFF ora19c | Listener Parameter File /opt/oracle/product/19c/dbhome_1/network/admin/listener.ora ora19c | Listener Log File /opt/oracle/diag/tnslsnr/bc698e003576/listener/alert/log.xml ora19c | Listening Endpoints Summary... ora19c | (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1))) ora19c | (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=0.0.0.0)(PORT=1521))) ora19c | The listener supports no services ora19c | The command completed successfully ora19c | Prepare for db operation ora19c | 8% complete ora19c | Copying database files ora19c | 31% complete ora19c | Creating and starting Oracle instance ora19c | 32% complete ora19c | 36% complete ora19c | 40% complete ora19c | 43% complete ora19c | 46% complete ora19c | Completing Database Creation ora19c | 51% complete ora19c | 54% complete ora19c | Creating Pluggable Databases ora19c | 58% complete ora19c | 77% complete ora19c | Executing Post Configuration Actions ora19c | 100% complete ora19c | Database creation complete. For details check the logfiles at: ora19c | /opt/oracle/cfgtoollogs/dbca/ORCLCDB. ora19c | Database Information: ora19c | Global Database Name:ORCLCDB ora19c | System Identifier(SID):ORCLCDB ora19c | Look at the log file "/opt/oracle/cfgtoollogs/dbca/ORCLCDB/ORCLCDB.log" for further details. ora19c | ora19c | SQL*Plus: Release 19.0.0.0.0 - Production on Sat Mar 19 08:41:27 2022 ora19c | Version 19.3.0.0.0 ora19c | ora19c | Copyright (c) 1982, 2019, Oracle. All rights reserved. ora19c | ora19c | ora19c | Connected to: ora19c | Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production ora19c | Version 19.3.0.0.0 ora19c | ora19c | SQL> ora19c | System altered. ora19c | ora19c | SQL> ora19c | System altered. ora19c | ora19c | SQL> ora19c | Pluggable database altered. ora19c | ora19c | SQL> ora19c | PL/SQL procedure successfully completed. ora19c | ora19c | SQL> SQL> ora19c | Session altered. ora19c | ora19c | SQL> ora19c | User created. ora19c | ora19c | SQL> ora19c | Grant succeeded. ora19c | ora19c | SQL> ora19c | Grant succeeded. ora19c | ora19c | SQL> ora19c | Grant succeeded. ora19c | ora19c | SQL> ora19c | User altered. ora19c | ora19c | SQL> SQL> Disconnected from Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production ora19c | Version 19.3.0.0.0 ora19c | The Oracle base remains unchanged with value /opt/oracle ora19c | The Oracle base remains unchanged with value /opt/oracle ora19c | ######################### ora19c | DATABASE IS READY TO USE! ora19c | ######################### ora19c | The following output is now a tail of the alert.log: ora19c | ORCLPDB1(3):ALTER DATABASE DEFAULT TABLESPACE "USERS" ora19c | ORCLPDB1(3):Completed: ALTER DATABASE DEFAULT TABLESPACE "USERS" ora19c | 2022-03-19T08:41:28.125385+00:00 ora19c | ALTER SYSTEM SET control_files='/opt/oracle/oradata/ORCLCDB/control01.ctl' SCOPE=SPFILE; ora19c | 2022-03-19T08:41:28.318093+00:00 ora19c | ALTER SYSTEM SET local_listener='' SCOPE=BOTH; ora19c | ALTER PLUGGABLE DATABASE ORCLPDB1 SAVE STATE ora19c | Completed: ALTER PLUGGABLE DATABASE ORCLPDB1 SAVE STATE ora19c | ora19c | XDB initialized. ora19c | 2022-03-19T08:50:54.083033+00:00 ora19c | ORCLPDB1(3):Resize operation completed for file# 10, old size 327680K, new size 337920K ora19c | 2022-03-19T09:00:56.067953+00:00 ora19c | Resize operation completed for file# 3, old size 522240K, new size 532480K
Docker 프로세스 확인
docker-compose -f docker-compose.ora19c.yml ps -a
docker ps -a
oracle-docker@ubuntu2004:~/compose$ docker-compose -f docker-compose.ora19c.yml ps -a Name Command State Ports ------------------------------------------------------------------------------------------------------------------------------------------- ora19c /bin/sh -c exec $ORACLE_BA ... Up (healthy) 0.0.0.0:1521->1521/tcp,:::1521->1521/tcp, 0.0.0.0:5500->5500/tcp,:::5500->5500/tcp oracle-docker@ubuntu2004:~/compose$ docker-compose -f docker-compose.ora19c.yml ps Name Command State Ports ------------------------------------------------------------------------------------------------------------------------------------------- ora19c /bin/sh -c exec $ORACLE_BA ... Up (healthy) 0.0.0.0:1521->1521/tcp,:::1521->1521/tcp, 0.0.0.0:5500->5500/tcp,:::5500->5500/tcp oracle-docker@ubuntu2004:~/compose$ docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES bc698e003576 oracle/database:19.3.0-ee "/bin/sh -c 'exec $O About an hour ago Up 5 minutes (healthy) 0.0.0.0:1521->1521/tcp, :::1521->1521/tcp, 0.0.0.0:5500->5500/tcp, :::5500->5500/tcp ora19c
삼바(samba)는 Windows 운영체제를 사용하는 PC에서 Linux 또는 UNIX 서버에 접속하여 파일이나 프린터를 공유하여 사용할 수 있도록 해 주는 소프트웨어입니다.
윈도우는 파일 시스템은 NTFS 이고 리눅스는 ext 입니다.
파일 시스템이 서로 다르다 보니 서로의 하드 디스크를 읽거나 쓰지 못합니다. 이러한 이유로 서로다른 파일 시스템의 자료를 공유 할수 있도록 하기 위한 소프트웨어로 삼바를 사용하게 됩니다.
설치를 진행하게될 리눅스 서버는 CentOS Linux release 7.9.2009 (Core) 입니다.
samba 설치
yum install samba
samba 버전확인
$ rpm -qa samba
samba-4.10.16-18.el7_9.x86_64
공유 데릭토리 생성
//삼바 접속 계정생성
adduser -d /data1/mydata mydata
//삼바 passwd 설정
passwd mydata
//공유 디렉토리 생성
mkdir sharedisk
samba user 등록
smbpasswd -a mydata
samba 환경설정
변경 및 추가 부분은 색깔로 표시 했습니다.
vi /etc/samba/smb.conf
[global] workgroup = WORKGROUP // 작업그룹 설정 security = user
passdb backend = tdbsam
printing = cups printcap name = cups load printers = yes cups options = raw hosts allow = 192.168.17. // 접속 허용 IP 설정
[homes] comment = Home Directories valid users = %S, %D%w%S browseable = No read only = No inherit acls = Yes
[printers] comment = All Printers path = /var/tmp printable = Yes create mask = 0600 browseable = No
[print$] comment = Printer Drivers path = /var/lib/samba/drivers write list = @printadmin root force group = @printadmin create mask = 0664 directory mask = 0775
[mydata] // 윈도우 네트워크 드라이브상에 출력될 이름 path = /data1/mydata/sharedisk // 리눅스 공유 디렉토리 생성 public = yes // 공유 writable = yes //쓰기가능 write list = smbuser // 접속 허용 유저 ,삼바 유저로 등록 한 계정 , 여러 계정일 경우 씌워쓰기로 설정 create mask = 0777 // 생성 권한 directory mask = 0777 // 디렉토리 권한 설정
리눅스에서 OpenJdk 설치하는 방법에 대해 소개 하고 설치된 버전을 손쉽게 변경하는 방법에대해 알아보겠습니다.
java 설치 (JDK:Java DevelopmentKit: javac)
jdk 설치 리스트 확인
yum list java*jdk-devel
yum install java-1.8.0-openjdk-devel.x86_64
JRE 설치(Java Runtime Environment:java)
yum list java*jdk
yum install java-1.8.0-openjdk.x86_64
java version 변경
alternatives --config [java/javac] 명령어 수행 후 변경하고자 하는 번호를 선택 하면 됩니다.
$ alternatives --config java
2 개의 프로그램이 'java'를 제공합니다.
선택 명령 ----------------------------------------------- 1 java-1.7.0-openjdk.x86_64 (/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.261-2.6.22.2.el7_8.x86_64/jre/bin/java) *+ 2 java-1.8.0-openjdk.x86_64 (/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.302.b08-0.el7_9.x86_64/jre/bin/java)
javac 버전 변경
alternatives --config javac
2 개의 프로그램이 'javac'를 제공합니다.
선택 명령 ----------------------------------------------- *+ 1 java-1.8.0-openjdk.x86_64 (/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.302.b08-0.el7_9.x86_64/bin/javac) 2 java-1.7.0-openjdk.x86_64 (/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.261-2.6.22.2.el7_8.x86_64/bin/javac)
# sudo apt-get install docker-ce docker-ce-cli containerd.io Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed: docker-ce-rootless-extras docker-scan-plugin git git-man liberror-perl pigz slirp4netns Suggested packages: aufs-tools cgroupfs-mount | cgroup-lite git-daemon-run | git-daemon-sysvinit git-doc git-el git-email git-gui gitk gitweb git-cvs git-mediawiki git-svn The following NEW packages will be installed: containerd.io docker-ce docker-ce-cli docker-ce-rootless-extras docker-scan-plugin git git-man liberror-perl pigz slirp4netns 0 upgraded, 10 newly installed, 0 to remove and 23 not upgraded. Need to get 104 MB of archives. After this operation, 448 MB of additional disk space will be used. Do you want to continue? [Y/n] y Get:1 https://download.docker.com/linux/ubuntu focal/stable amd64 containerd.io amd64 1.5.10-1 [24.9 MB] ..... 중략 Setting up git (1:2.25.1-1ubuntu3.2) ... Processing triggers for man-db (2.9.1-1) ... Processing triggers for systemd (245.4-4ubuntu3.15) ...
$ sudo systemctl status ssh [sudo] min의 암호: ● ssh.service - OpenBSD Secure Shell server Loaded: loaded (/lib/systemd/system/ssh.service; enabled; vendor preset: enabled) Active: active (running) since Sat 2022-03-19 11:26:10 KST; 22min ago Docs: man:sshd(8) man:sshd_config(5) Main PID: 4744 (sshd) Tasks: 1 (limit: 13936) Memory: 1.0M CGroup: /system.slice/ssh.service └─4744 sshd: /usr/sbin/sshd -D [listener] 0 of 10-100 startups
3월 19 11:26:10 min-server systemd[1]: Starting OpenBSD Secure Shell server... 3월 19 11:26:10 min-server sshd[4744]: Server listening on 0.0.0.0 port 22. 3월 19 11:26:10 min-server sshd[4744]: Server listening on :: port 22. 3월 19 11:26:10 min-server systemd[1]: Started OpenBSD Secure Shell server.
SSH 서버가 중지 상태일때 모습니다.
root@min-server:~# sudo systemctl stop ssh root@min-server:~# sudo systemctl status ssh ● ssh.service - OpenBSD Secure Shell server Loaded: loaded (/lib/systemd/system/ssh.service; enabled; vendor preset: enabled) Active: inactive (dead) since Sat 2022-03-19 11:53:01 KST; 3s ago Docs: man:sshd(8) man:sshd_config(5) Process: 6437 ExecStartPre=/usr/sbin/sshd -t (code=exited, status=0/SUCCESS) Process: 6438 ExecStart=/usr/sbin/sshd -D $SSHD_OPTS (code=exited, status=0/SUCCESS) Main PID: 6438 (code=exited, status=0/SUCCESS)
3월 19 11:52:33 min-server systemd[1]: Starting OpenBSD Secure Shell server... 3월 19 11:52:33 min-server sshd[6438]: Server listening on 0.0.0.0 port 22. 3월 19 11:52:33 min-server sshd[6438]: Server listening on :: port 22. 3월 19 11:52:33 min-server systemd[1]: Started OpenBSD Secure Shell server. 3월 19 11:53:01 min-server systemd[1]: Stopping OpenBSD Secure Shell server... 3월 19 11:53:01 min-server sshd[6438]: Received signal 15; terminating. 3월 19 11:53:01 min-server systemd[1]: ssh.service: Succeeded. 3월 19 11:53:01 min-server systemd[1]: Stopped OpenBSD Secure Shell server.
저는 앞으로 Docker 를 공부해 볼 계획이라 docker-test 계정을 생성하겠습니다.
테스트 절차는 아래 내용으로 진행 하겠습니다.
1. 테스트 계정 생성
2. 우분투 서버 IP 정보 확인
3.리눅스 테스트 계정 접속
4. 리모트 서버(윈도우 노트북 -> 우분투 테스트 계정 접속)
테스트 계정 생성
# adduser docker-test 'docker-test' 사용자를 추가 중... 새 그룹 'docker-test' (1001) 추가 ... 새 사용자 'docker-test' (1001) 을(를) 그룹 'docker-test' (으)로 추가 ... '/home/docker-test' 홈 디렉터리를 생성하는 중... '/etc/skel'에서 파일들을 복사하는 중... 새 암호: 새 암호 재입력: passwd: 암호를 성공적으로 업데이트했습니다 docker-test의 사용자의 정보를 바꿉니다 새로운 값을 넣거나, 기본값을 원하시면 엔터를 치세요 이름 []: 방 번호 []: 직장 전화번호 []: 집 전화번호 []: 기타 []: 정보가 올바릅니까? [Y/n]
# ssh docker-test@180.64.82.103 The authenticity of host '180.64.82.103 (180.64.82.103)' can't be established. ECDSA key fingerprint is SHA256:sIwnjEfSdu/Pqb0jQwVrigRwrJUtTizyGrqu3Fjgjqg. Are you sure you want to continue connecting (yes/no/[fingerprint])? y Please type 'yes', 'no' or the fingerprint: yes Warning: Permanently added '180.64.82.103' (ECDSA) to the list of known hosts. docker-test@180.64.82.103's password: Welcome to Ubuntu 20.04.4 LTS (GNU/Linux 5.13.0-35-generic x86_64)
22 updates can be applied immediately. 추가 업데이트를 확인하려면 apt list --upgradable 을 실행하세요.
Your Hardware Enablement Stack (HWE) is supported until April 2025.
The programs included with the Ubuntu system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright.
Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law.
리모트 서버(윈도우 노트북 -> 우분투 테스트 계정 접속)
윈도우 노트북 SecureCRT 에서 우분투 접속을 하려고 하니 아래와 같은 에러가 발생합니다.
Key exchange failed. No compatible key exchange method. The server supports these methods: curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256
/etc/ssh/sshd_config 를 수정 해서 문제를 해결하겠습니다.
vi /etc/ssh/sshd_config
KexAlgorithms +diffie-hellman-group1-sha1
Ciphers +aes128-cbc
systemctl restart sshd