ssh
Quickly fixing SSH when the remote key changes!
So, you cloned your virtual machine and made sure it has the same MAC addresses so that it would pull the same IP from the DHCP server lease. but the next time you click on your SSH icon, it fails.
Does this look familiar?
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!Well this is the magic line:
Offending key in /home/someuser/.ssh/known_hosts:19
Tame the flaky SFTP
a big thanks to Beau Henderson, Technical Manager over at Site5 for reminding me to put the following in my personal .ssh/config file:
ServerAliveInterval 180
TCPKeepAlive yesThis solves many issues with timeouts.
Passwordless SSH Logins? Easy!
Secure Shell (SSH) has become a critical part of my tool box. I can bounce from machine to machine with speed and ease all the while knowing my connections are encrypted and what I am doing and what I am downloading is my business.
One of the best things about SSH is its ability to have long term trust which does away with the passwords associated with an action.
HOWTO Assumptions, a linux desktop with OpenSSH installed and a remote system with an SSH server on it.
Use Case:
Uber Admin Tip: Instant SOCKS proxy.
Ok, so you have an SSH account back at school on your ubuntu computer and you set up apache on port 80, but forgot to config your firewall to let port 80 traffic in and drove the 50 minutes through traffic home only to find you forgot and may have to drive back to school. What to do? Thanks to OpenSSH you can create a down and dirty SOCKS Proxy over an encrypted SSH connection from your home computer.
No Really, this is literally a one liner! Here is what we will do:
First we will create an SSH connection to our machine back at school, while redirecting a local port over the SSH connection.
ssh -D 9999 yourlogin@lab2.yourschool.edu -p 22Popular content
All time:
Last viewed: