Tag Info

New answers tagged

2

There seems to be a lot of confusion on the difference between a host key, and a user key. A host key is used to establish the identity of the remote host to you. A user key is used to establish the identity of yourself to the remote host. Since these keys are typically shown as just a sequence of characters, it can be difficult for a human to tell at a ...


-1

I have a less complicated answer, and surely not a keylogger. I don't get your point of being server log independent (this means that all the actions need to be taken to the server and all logs are server side logs), and thus I thought that a good idea is to pass to system wide bashrc a prompt command like: PROMPT_COMMAND='history -a >(tee -a ...


0

I found a solution. In the OpenVPN configuration file /etc/openvpn/server.conf you can specify a script to run on up. If you take a look at the OpenVPN manual page man openvpn, you will see --up cmd. In the /etc/openvpn/server.conf configuration file, I added a line: up "/etc/openvpn/up.sh" This file is one that I created and will be executed when the ...


0

Looks like ssh uses upstart, but openvpn doesn't ... you might be able to force ssh to come up delayed by doing this, but it's untested (I don't want to mess up my install): update-rc.d ssh defaults 99 And as it's untested: CAVEAT EMPTOR


10

This was explained in this question: http://superuser.com/questions/22535/what-is-randomart-produced-by-ssh-keygen. It doesn't really have any use for the user generating the key, rather it's for ease of validation. Personally. would you rather look at this: (Please note this is a host key example) 2048 1b:b8:c2:f4:7b:b5:44:be:fa:64:d6:eb:e6:2f:b8:fa ...


5

I usually run passwd after useradd to set the password as I want it. But if you are provisioning and doing this from a script you may need to use crypt and provide the encrypted password on the command line.


0

Similar to Amal Chaudhuri's method below, this is what worked for me. I needed to create a pem file from the ssh public key I'd generated for my SFTP client (Cyberduck). openssl rsa -in ~/.ssh/id_rsa -outform pem > id_rsa.pem


1

I am currently using the bash script below. It has many problems, but it is the only solution I have found that addresses all of the requirements, priorities, and "nice to haves" (at least most of the time). This answer discusses why logging ssh sessions locally is so difficult. Issues with the script I found so far: Multiline commands cause issues: ...



Top 50 recent answers are included