728x90
반응형

IT knowledge 3

netstat 세션 count 갯수 확인

rfc통신이 비 정상적으로 많이 발생하여 세션 count를 해봤습니다. cmd창에 netstat -ano | findstr "IP주소" | findstr "포트" | find /c /v"" C:\Users\>netstat -help Displays protocol statistics and current TCP/IP network connections. NETSTAT [-a] [-b] [-e] [-f] [-n] [-o] [-p proto] [-r] [-s] [-x] [-t] [interval] -a Displays all connections and listening ports. -b Displays the executable involved in creating each connection or lis..

IT knowledge/Infra 2024.03.08

리눅스 파일 옮기기 명령어 SCP, SCP PORT

CLI 환경인 리눅스에서는 파일을 이동할 수 있는 명령어들이 여럿 있는데 가장 간편한 SCP 사용법을 소개해보려합니다. SCP 는 SSH와 마찬가지로 22번 포트를 사용합니다. 보안존에 있다면 소스시스템과 타겟시스템 사이의 22번 포트를 오픈하여야 합니다. SCP 설치 apt install openssh-server -y SCP 명령어 사용 방법 scp [파일경로] [원격유저ID]@[원격IP]:[경로] 예시 test 라는 디렉터리를 1.1.1.1 서버의 /backup 디렉터리로 이동하기 (접속 계정 root) scp /test/ root@1.1.1.1.:/backup 위와 같이 간편하게 옮길 수 있다.

IT knowledge/linux 2022.08.02
반응형