80 reputation
7
bio website
location
age
visits member for 2 years, 9 months
seen Jul 17 at 20:20

Apr
25
comment git repo for dotfiles - clone to homefolder
this is an amazing resource, and it is so useful I'm going to select it as the answer, even though my answer solved my problem, this is probably the best way to do it
Apr
5
comment Formatting data from management database
This is coming from a sql server, I should have thought of this earlier, but I'm currently looking into 'joins'
Mar
28
comment BASH quoting for sudo su user -c
will this execute the command as the user with the proper environment/permissions? I didn't try sudo -u as I had been advised that su would make sure the permissions were proper for the ssh keys to be used without having to manually chmod 400 them afterwards
Mar
28
comment BASH quoting for sudo su user -c
well I found one problem, somewhere along the way I lost my escapes for "/bin/false". it should have been "\/bin\/false" I think it may have been working somewhere along the line if I had those
Mar
27
comment Securing a persistent reverse SSH connection for management
after a bit of testing I got this working reliably with "command="/bin/false",no-agent-forwarding,no-pty,no-X11-forwarding," I also changed the sshd_config to Match User jdoe ForceCommand /bin/false when connecting using ssh client, it seems you need -N to keep the connection open once /bin/false returns