Tag Archives: SSH

Use ssh comfortably with command history and auto-complete

When using ssh on a daily basis you type a lot, given you are probably entering a lot of hostnames and command-line options. But on your local Linux or OS X powered computer you have a lot of powerful tools to make your life easier. I would like to show a couple of easy tricks to make your life easier while working with ssh. Continue reading

Posted in Linux Administration | Tagged , , | Comments Off on Use ssh comfortably with command history and auto-complete

SSH-Key authentication is not working – SELinux

When configuring SSH passwordless login with ssh-key the ssh-key generated and transfered to the server seems to not work when I try to login. Whay is the ssh-key authentication failing? Continue reading

Posted in Linux Administration, Security | Tagged , , | 1 Comment

Create webupload user for SCP

With a website running on your server you might have come across the permission problems when uploading files to the document root. Files are owned by the upload user, apache can read them but upload and modification via the web front-end fails and much more. The reason is the permission and ownership structure in Linux. But how to solve that mess? Continue reading

Posted in Linux Administration | Tagged , , | Comments Off on Create webupload user for SCP

Access SSH server without direct connection from the internet

When two servers are connected to each other but only one server has access to the internet, it is always uncomfortable to connect to the server without internet connection. Specially when files need to be copied to the server without direct internet connection. There is a way to make it more comfortable to connect via ssh. Continue reading

Posted in Linux Administration | Tagged , , | 1 Comment

Restrict SSH login using SSH keys to a particular IP address

Because most passwords are quite short so you can remember them as well as it is annoying to type the password all the time, You might have already considered creating SSH-keys and configured the SSH passwordless login with SSH-key for your server. But how to secure the access with SSH-key? Continue reading

Posted in Linux Administration, Security | Tagged , , , | Comments Off on Restrict SSH login using SSH keys to a particular IP address

Secure SSH server access

With a server running, SSH is one of the services nearly instantly gets checked out. Only after a couple of hours of going live with your server, you might already notice someone trying to login with passwords from a dictionary. There are some things you can do to reduce those hacking attempts to your SSH server. Continue reading

Posted in Linux Administration, Security | Tagged , , | Comments Off on Secure SSH server access

Change SSH port in CentOS with SELinux

Since version 4 of CentOS, SELinux is providing an additional layer of security to the Linux distribution. As of SELinux in combination with sshd, changing the port or even listening on 2 ports is not as easy as just changing the sshd configuration file. Continue reading

Posted in Linux Administration, Security | Tagged , , | Comments Off on Change SSH port in CentOS with SELinux

Restrict Linux User to SCP to his home directory

You wanna give access to your server? But you want to restrict access to SCP/SFTP and to the user’s home directory. Here is how i configured an account restricted to SCP/SFTP only using jailkit on CentOS. Continue reading

Posted in Linux Administration, Security | Tagged , , , , , | Comments Off on Restrict Linux User to SCP to his home directory

Subversion via ssh using authorized_keys

When i used subversion in the past i created a separate user on the linux operating system. This user then got the right to login via ssh to use subversion. If you have one or two users to manage that is not a big deal. But when the amount of users is growing … Continue reading

Posted in Linux Administration, Security, Version control system | Tagged , , , | Comments Off on Subversion via ssh using authorized_keys

SSH remote host identification has changed

You might know the situation when you try to login to a server via ssh and instead of the console you get the “REMOTE HOST IDENTIFICATION HAS CHANGED” Warning. Here is how to deal with it. Continue reading

Posted in Linux Administration, Security | Tagged | Comments Off on SSH remote host identification has changed