ssh
General posts that involve SSH, these will include howtos and configuration information
SSH Tunnelling
0Quite a simple one:
ssh -f USER@INTERMEDIATE_DEVICE -L LOCAL_PORT:DESTINATION_DEVICE:DESTINATION_PORT -N
-f tells ssh to go to background
-L binds a local port to a remote device and port
-N tells ssh not to execute any commands
So use this to tunnel from local port 8000 in to a remote machine on port 22 you'd use
ssh -f user@server.test.com -L 8000:server.destination.com:22 -N
Once the tunnel is open you can use the following to ssh or scp data around
ssh localhost -p 8000
scp -P 8000 /path/to/local/file user@localhost:~
scp -P 8000 user@localhost:/path/to/remote/file .
I use ssh tunnels all More >
Mounting a remote filesystem using sshfs
0First we need to install sshfs.
sudo apt-get install sshfs fuse-utils
Now we make a mount point, I'm going to use a directory in my home directory for this.
mkdir ~/remote-content
And now we simply mount our remote directory to it.
sshfs user@host:/path/to/location ~/remote-content
It's as simple as that.
HOWTO: SSH config on Debian/Ubuntu
1Today I finally got round to setting up my local user ssh config on my new work laptop and figured I'd do a quick write up on it and it's uses.
You can create a configuration file in your home directory that will override the options set in your machine-wide config.
Your configuration filesYour local config can be found/created in:
~/.ssh/config
And your machine-wide configuration is in:
/etc/ssh/ssh_config
Rather than editing my ssh config across my whole machine I'm doing it for my local user specifically.
Reading the man page for ssh_config will give you a full list of available options, More >
HOWTO: Debian server security
1Server security is something I've always tried to keep myself up-to-date on. I have at least a dozen RSS feeds that I read daily to learn about the latest flaws, holes releases etc. That being said I am by no means an "expert", I've learned what I've needed to learn over time. I like to think that over the years I've gained enough knowledge to almost completely secure servers with all the programs installed that I generally use.
The aim of this article is to introduce you to some of the programs I use for security and some config changes that can be made to other programs to make them more More >


Authentication-Results: mx.google.com;[…] 1 week ago