Archive for the ‘Uncategorized’ Category

SSH tricks

May 27, 2019

Check SSH configuration
sshd -t

Show active SSH connections
lsof -i -n | egrep '\<ssh\>'

Script to keep alive SSH connection with varying IP:


if [ -z "$(ps ax | awk '{print $9}' | grep 2200:svarm:2200)" ]
ssh -N -f -R 2200:svarm:2200 -p 2222

Establish SSH tunnel to DB on background, save its PID and kill it afterwards:


ssh  -N -L jump-host &
do something
kill -9 $pid





Install mono, dotnet, octo.exe on Amazon Linux

October 23, 2017

# mono
yum install yum-utils
rpm --import ""
yum-config-manager --enable
yum install -y libpng15-1.5.30-1.fc28.x86_64.rpm
yum install -y mono
#yum install -y mono-devel
#yum install -y mono-complete

# dotnet
mkdir /opt/dotnet
cd /opt/dotnet/
sudo rpm --import
sudo sh -c 'echo -e "[packages-microsoft-com-prod]\nname=packages-microsoft-com-prod \nbaseurl=\nenabled=1\ngpgcheck=1\ngpgkey=" > /etc/yum.repos.d/dotnetdev.repo'
sudo yum -y update
sudo yum -y install libunwind libicu
#sudo yum -y install dotnet-sdk-2.0.0
rpm -i --replacefiles openssl-libs-1.1.0f-9.fc27.x86_64.rpm
sudo yum install dotnet-sdk-2.0.0

# octo.exe
mkdir /opt/octopus
cd /opt/octopus
tar -xvzf OctopusTools.4.24.2.rhel.7-x64.tar.gz
ln -s /opt/octopus/Octo /usr/bin/octo.exe

First entry

February 29, 2008

I am a software developer for about 8 years. Now I mostly do Java/J2EE and I love this language and the environment. I started this blog to write short articles about software development, IT career, various tips and tricks for Java and associated technologies.