User Tools

Site Tools


linux:networking

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
linux:networking [2026/03/06 12:49] – created v1ctorlinux:networking [2026/03/27 20:34] (current) – [TCP OFFLOADING] v1ctor
Line 13: Line 13:
 $ scp username@remotehost:file_name.txt /local/directory     # from remote to local $ scp username@remotehost:file_name.txt /local/directory     # from remote to local
 $ scp file_name.txt username@remotehost:/remote/directory    # from local to remote $ scp file_name.txt username@remotehost:/remote/directory    # from local to remote
-$ scp -r dir_name username@remotehost:/remote/directory      # copy the local directory "dir_name" to remote host+$ scp -r dir_name username@remotehost:/remote/directory      # copy the local directory "dir_name" to 
 +                                                             # remote host
 $ scp -6 username@\[2001:db8:0:1\]:/home/username/test.file ./test.file # going via ipv6 $ scp -6 username@\[2001:db8:0:1\]:/home/username/test.file ./test.file # going via ipv6
 </code> </code>
Line 28: Line 29:
 Basic TCP test: Basic TCP test:
 <code bash> <code bash>
-nc -vz 10.10.0.1 80     # v - verbose; z - just scan for listening daemon, without sending any data to them+nc -vz 10.10.0.1 80     # v - verbose; z - just scan for listening daemon, 
 +                        # without sending any data to them
 </code> </code>
  
Line 101: Line 103:
 <code bash> <code bash>
 $ sudo ethtool -K ens3 tso off $ sudo ethtool -K ens3 tso off
 +</code>
 +
 +
 +==== CONNECTIONS ====
 +
 +Pinpoint the service that's using a port:
 +<code bash>
 +$ lsof -i # "-i" option selects the listing of all network files
 +$ lsof -i:22 # filter out only port 22
 +$ sudo ls -la /proc/58198/exe
 +lrwxrwxrwx 1 user user 0 Aug 17 11:48 /proc/58198/exe -> /opt/python/3.6/bin/python3.6
 </code> </code>
linux/networking.1772801350.txt.gz · Last modified: by v1ctor