scp to a port

Quick reminder on how to transfer a file to a specific port, the option is upper -P

$ scp -P 91307 profile-pic.jpg superuser@{target IP}:/tmp
people-pic.jpg                        100%   45KB 303.5KB/s   00:00 

The port 91307 is being natted using VirtualBox, this particular port is listening on port 22 which in turn is being presented to the public IP

Firewall command might be needed to open the port, in this example in order to open tcp traffic thru port range 8091-8099 use the firewall-cmd to accomplish that

# firewall-cmd --add-port=8091-8099/tcp
success

# firewall-cmd --list-ports
80/tcp 443/tcp 8080/tcp 8443/tcp 8091-8099/tcp

Redhat has a great guide on this, here.

Once you are satisfied with the rules in place, make them permanent

# firewall-cmd --runtime-to-permanent
success

RELATED POST

Veritas Volume Manager: Growing a disk group and expand the filesystem

Validated by Mr Man! Lets start off on node2 [root@node02 ~]# vxdisk list DEVICE TYPE DISK GROUP STATUS sda auto:none…

Virtual Machine Manager: Error starting domain

Starting up the KVM error occurred Error starting domain: Requested operation is not valid: network 'default' is not active Locate…

Git Commands

How to initialize a Git repo: Everything starts from here. The first step is to initialize a new Git repo…

Lab Hack: Raspberry Pi running VMWare ESXi

As strange as the title sounds, yes I am running VMWare ESXi on a Raspberry Pi 4 Model B (4GB)…