I don’t see that anyone has spelled out the specific risk with SSH port forwarding in detail.
If you are inside a firewall and have outbound SSH access to a machine on the public internet, you can SSH to that public system and in the process create a tunnel so that people on the public internet can ssh to a system inside your network, completely bypassing the firewall.
If fred is your desktop and barney is an important server at your company and wilma is public, running (on fred):
ssh -R*:9000:barney:22 wilma
and logging in will let an attacker ssh to port 9000 on wilma and talk to barney’s SSH daemon.
Your firewall never sees it as an incoming connection because the data is being passed through a connection that was originally established in the outgoing direction.
It’s annoying, but a completely legitimate network security policy.
Related Posts:
- Git: How to solve Permission denied (publickey) error when using Git?
- Putty: Getting Server refused our key Error
- Copying a local file from Windows to a remote server using scp
- ssh: The authenticity of host ‘hostname’ can’t be established
- ssh “permissions are too open” error
- Permission denied (publickey,keyboard-interactive)
- How to deal with “Pseudo-terminal will not be allocated because stdin is not a terminal.”
- What is actually in known_hosts?
- ‘heroku’ does not appear to be a git repository
- How to solve “sign_and_send_pubkey: signing failed: agent refused operation”?
- How to fix request failed on channel 0
- How to scp in Python?
- Forward X11 failed: Network error: Connection refused
- PuTTY PSCP error “Local to local copy not supported” when username contains a slash
- Starting ssh-agent on Windows 10 fails: “unable to start ssh-agent service, error :1058”
- Git error: “Host Key Verification Failed” when connecting to remote repository
- Convert PEM to PPK file format
- Copying files using rsync from remote server to local machine
- How to read iPhone files without jailbreaking?
- SSH to Vagrant box in Windows?
- How to use Sublime over SSH
- Use qdel to delete all my jobs at once, not one at a time
- Automating command/script execution using PuTTY
- Public and Private Keys are Incorrect for user
- How to automate SSH login with password?
- ssh returns “Bad owner or permissions on ~/.ssh/config”
- How do I change my private key passphrase?
- Create a public SSH key from the private key?
- How do diff over ssh?
- “Add correct host key in known_hosts” / multiple ssh host keys per hostname?
- SSH use only my password, Ignore my ssh key, don’t prompt me for a passphrase
- ssh-agent forwarding and sudo to another user
- Non interactive git clone (ssh fingerprint prompt) [duplicate]
- How to check sshd log?
- What does “Warning: untrusted X11 forwarding setup failed: xauth key data not generated” mean when ssh’ing with -X?
- What’s the difference between authorized_keys and authorized_keys2?
- Is my password compromised because I forgot to hit Enter after ssh username?
- How do I make ssh fail rather than prompt for a password if the public-key authentication fails?
- ssh-keygen does not create RSA private key
- OpenSSH: Difference between internal-sftp and sftp-server
- What significance does the user/host at the end of an SSH public key file hold?
- SSH Suddenly returning Invalid format
- How can I prevent the warning No xauth data; using fake authentication data for X11 forwarding?
- How to recover from “Too many Authentication Failures for user root”
- SFTP logging: is there a way?
- Why does my OpenSSH key fingerprint not match the AWS EC2 console keypair fingerprint?
- Login without running bash_profile or bashrc
- How do I do Multihop SCP transfers between machines?
- scp without known_hosts check
- How do I validate an RSA SSH public key file (id_rsa.pub)?
- How can I run arbitrarily complex command using sudo over ssh?
- Add comment to existing SSH public key
- ssh connection takes forever to initiate, stuck at “pledge: network”
- What is the benefit of not allocating a terminal in ssh?
- bad ownership or modes for chroot directory component
- Ansible stuck on gathering facts
- Is it possible to use rsync over sftp (without an ssh shell)?
- SSH Allow Password For One User, Rest Only Allow Public Keys [duplicate]
- scp with port number specified
- ssh : Permission denied (publickey,gssapi-with-mic)
- Could not open a connection to your authentication agent
- How to establish ssh key pair when “Host key verification failed”
- AWS – Disconnected : No supported authentication methods available (server sent :publickey)
- mysql_config not found when installing mysqldb python interface
- SSH -X “Warning: untrusted X11 forwarding setup failed: xauth key data not generated”
- Node.js Port 3000 already in use but it actually isn’t?
- What is the difference between a port and a socket?
- What is the difference between ports 465 and 587?
- mysql_config not found when installing mysqldb python interface
- What is process.env.PORT in Node.js?
- Pseudo-terminal will not be allocated because stdin is not a terminal
- Getting stty: standard input: Inappropriate ioctl for device when using scp through an ssh tunnel
- Copying files from server to local computer using SSH
- Docker – Bind for 0.0.0.0:4000 failed: port is already allocated
- Nat Punchthrough understanding P2P concept
- How to kill a process on a port on ubuntu
- EC2 ssh Permission denied (publickey,gssapi-keyex,gssapi-with-mic)
- Configure WordPress to connect to Mysql DB using SSH tunneling
- Failure to establish connection when provisioning via ansible-playbook server.yml
- Unable to update WordPress or install plugins/themes
- SSH Server with WordPress
- AWS Lightsail WordPress – connect to database on instance using mysqli
- Configuring WordPress permissions for easy updates
- How do I tell Git for Windows where to find my private RSA key?
- Check if port is open or closed on a Linux server?
- Permission denied (publickey). SSH from local Ubuntu to Amazon EC2 server
- How to reconnect to a disconnected ssh session
- Keeping a linux process running after I logout
- Why do consoles sometimes hang forever when SSH connection breaks?
- How to check if an RSA public / private key pair match
- Why does the MySQL command line tool ignore the –port parameter?
- What firewall ports need to be open to allow access to external git repositories?
- “POSSIBLE BREAK-IN ATTEMPT!” in /var/log/secure — what does this mean?
- Can you have more than one ~/.ssh/config file?
- SSH from A through B to C, using private key on B [closed]
- How can I edit the welcome message when ssh start?
- SSHFS mount that survives disconnect
- Temporarily ignore my `~/.ssh/known_hosts` file?
- How do high traffic sites service more than 65535 TCP connections?
- Using wp-cli on remote with quoted commands