There are several programs that make this happen, but after I tried some of them I found very useful one of them KAZAM
It’s very simple to install
sudo apt-get install kazam
And just run it
You can view this post for other options for it
I usually only put in this blog working solutions proved by me, but in this case I did so many things that I can’t recall how I make that VPN working, but from my browser history I can reference to some of the posts that helped me do it. And the last thing that I did to make it work. I promise to update this post when I need to make this process again with the solution but until that I can’t erase it to make the process again (I don’t have the time for it)
I was just having trouble because you can’t use the same RSA key in order to connect to multiple accounts on bitbucket, this can be solved creating a new one, but you need to know how to handle them, and there is two ways to do it.
If you just need to connect with ssh to a host well you can just put it as a parameter, but this doesn’t work as a complete solution.
ssh -i PATH_TO_SSH_KEY email@example.com
Sometimes you need to run commands as another user in order to avoid permission errors, you can run a crontab as another user with the following command
sudo crontab -u USER_RUNNER -e
Just change USER_RUNNER for an existent user on your system and it will run as that user.
And by the way, if you need some assistance on how to create the different values for your cron times, and how they are defined, this is a great tool.
With SSH create a SOCKS proxy it’s really easy, just log into your account on the remote server, and leave it open
ssh -D [PORT:9000] firstname.lastname@example.org
The solution for this is run this commands as sudo
dd if=/dev/zero of=/var/swap.1 bs=1M count=1024
And retry the composer command
Connecting to the MySQL cli (database is optional)
mysql -u USERNAME -p DATABASE