mediun level Linux commands on netstat, SCP, >>, SSH, etc

1) SSH & netstat

C:\Users\51638>ssh -p 22 root@8.137.109.109

Welcome to Alibaba Cloud Elastic Compute Service !

Updates Information Summary: available
    50 Security notice(s)
        12 Important Security notice(s)
        30 Moderate Security notice(s)
         8 Low Security notice(s)
Run "dnf upgrade-minimal --security" to apply all updates.More details please refer to:
https://help.aliyun.com/document_detail/416274.html
Last login: Wed Aug 14 14:04:06 2024 from 36.113.32.98
[root@iZ2vc5lqzt23aweti4j777Z ~]# netstat -tuln
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State
tcp        0      0 0.0.0.0:5355            0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:111             0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:20048           0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:38833           0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:56379           0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:2049            0.0.0.0:*               LISTEN
tcp        0      0 127.0.0.1:42915         0.0.0.0:*               LISTEN
tcp6       0      0 :::5355                 :::*                    LISTEN
tcp6       0      0 :::111                  :::*                    LISTEN
tcp6       0      0 :::20048                :::*                    LISTEN
tcp6       0      0 :::46519                :::*                    LISTEN
tcp6       0      0 :::2049                 :::*                    LISTEN
tcp6       0      0 :::58695                :::*                    LISTEN
udp        0      0 127.0.0.1:323           0.0.0.0:*
udp        0      0 0.0.0.0:20048           0.0.0.0:*
udp        0      0 127.0.0.1:659           0.0.0.0:*
udp        0      0 0.0.0.0:57220           0.0.0.0:*
udp        0      0 127.0.0.53:53           0.0.0.0:*
udp        0      0 0.0.0.0:111             0.0.0.0:*
udp        0      0 0.0.0.0:44156           0.0.0.0:*
udp        0      0 0.0.0.0:5355            0.0.0.0:*
udp6       0      0 ::1:323                 :::*
udp6       0      0 :::20048                :::*
udp6       0      0 :::46721                :::*
udp6       0      0 :::111                  :::*
udp6       0      0 :::44225                :::*
udp6       0      0 :::5355                 :::*
[root@iZ2vc5lqzt23aweti4j777Z ~]# netstat -tuln | grep :22
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN
[root@iZ2vc5lqzt23aweti4j777Z ~]# ss -tuln | grep :22
tcp   LISTEN 0      128          0.0.0.0:22         0.0.0.0:*
[root@iZ2vc5lqzt23aweti4j777Z ~]# ss -tuln | grep "22"
udp   UNCONN 0      0            0.0.0.0:57220      0.0.0.0:*
udp   UNCONN 0      0               [::]:44225         [::]:*
tcp   LISTEN 0      128          0.0.0.0:22         0.0.0.0:*
[root@iZ2vc5lqzt23aweti4j777Z ~]# ss -tuln | grep 22"
>
> ;
> ^C
[root@iZ2vc5lqzt23aweti4j777Z ~]# ss -tuln | grep 22
udp   UNCONN 0      0            0.0.0.0:57220      0.0.0.0:*
udp   UNCONN 0      0               [::]:44225         [::]:*
tcp   LISTEN 0      128          0.0.0.0:22         0.0.0.0:*
[root@iZ2vc5lqzt23aweti4j777Z ~]# ss -tuln | grep "8080"
[root@iZ2vc5lqzt23aweti4j777Z ~]# ss -tuln | grep "80"
[root@iZ2vc5lqzt23aweti4j777Z ~]# ss -tuln | grep "2049"
tcp   LISTEN 0      64           0.0.0.0:2049       0.0.0.0:*
tcp   LISTEN 0      64              [::]:2049          [::]:*
[root@iZ2vc5lqzt23aweti4j777Z ~]# ls -al
total 68
dr-xr-x---.  7 root root 4096 Aug 14 15:06 .
dr-xr-xr-x. 18 root root 4096 Aug 12 15:59 ..
-rw-------   1 root root 1449 Aug 14 15:09 .bash_history
-rw-r--r--.  1 root root   18 May 18  2020 .bash_logout
-rw-r--r--.  1 root root  176 May 18  2020 .bash_profile
-rw-r--r--.  1 root root  176 May 18  2020 .bashrc
drwxr-xr-x   3 root root 4096 Aug 14 12:08 .cache
drwx------   3 root root 4096 Oct 11  2023 .config
-rw-r--r--.  1 root root  100 May 18  2020 .cshrc
-rw-r--r--   1 root root  569 Aug 14 13:20 id_rsa.pub
drwxr-xr-x   2 root root 4096 Oct 11  2023 .pip
-rw-r--r--   1 root root  206 Aug 12 15:59 .pydistutils.cfg
drwx------   3 root root 4096 Aug 14 15:06 .ssh
-rw-r--r--.  1 root root  129 May 18  2020 .tcshrc
-rw-------   1 root root  796 Aug 14 15:06 .viminfo
drwxr-xr-x   5 root root 4096 Aug 14 13:30 .vscode-server
-rw-r--r--   1 root root  183 Aug 14 12:08 .wget-hsts
[root@iZ2vc5lqzt23aweti4j777Z ~]# pwd
/root
[root@iZ2vc5lqzt23aweti4j777Z ~]# ls -al
total 68
dr-xr-x---.  7 root root 4096 Aug 14 15:06 .
dr-xr-xr-x. 18 root root 4096 Aug 12 15:59 ..
-rw-------   1 root root 1449 Aug 14 15:09 .bash_history
-rw-r--r--.  1 root root   18 May 18  2020 .bash_logout
-rw-r--r--.  1 root root  176 May 18  2020 .bash_profile
-rw-r--r--.  1 root root  176 May 18  2020 .bashrc
drwxr-xr-x   3 root root 4096 Aug 14 12:08 .cache
drwx------   3 root root 4096 Oct 11  2023 .config
-rw-r--r--.  1 root root  100 May 18  2020 .cshrc
-rw-r--r--   1 root root  569 Aug 14 13:20 id_rsa.pub
drwxr-xr-x   2 root root 4096 Oct 11  2023 .pip
-rw-r--r--   1 root root  206 Aug 12 15:59 .pydistutils.cfg
drwx------   3 root root 4096 Aug 14 15:06 .ssh
-rw-r--r--.  1 root root  129 May 18  2020 .tcshrc
-rw-------   1 root root  796 Aug 14 15:06 .viminfo
drwxr-xr-x   5 root root 4096 Aug 14 13:30 .vscode-server
-rw-r--r--   1 root root  183 Aug 14 12:08 .wget-hsts
[root@iZ2vc5lqzt23aweti4j777Z ~]# cd .ssh/
[root@iZ2vc5lqzt23aweti4j777Z .ssh]# ls
14thAug2024  14thAug2024.txt  authorized_keys
[root@iZ2vc5lqzt23aweti4j777Z .ssh]#
[root@iZ2vc5lqzt23aweti4j777Z .ssh]# pwd
/root/.ssh
[root@iZ2vc5lqzt23aweti4j777Z .ssh]# ls -al
total 24
drwx------  3 root root 4096 Aug
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值