Posts

Showing posts with the label remote

Returning to the office (only briefly)

Image
After a long hot summer and the pandemic winding down a little, the client I am working for is asking people to gradually return to the office 40% of the time following the government guideline. As for me, the journey started two weeks ago. It was refreshing with a back-to-school vibe when I first got into the office, of course with a lot of new changes and measures in place, like marks and signs on the floor, to keep people socially distanced, as well as  sanitisers dotted everywhere in the office. And  I was really excited about the fact that I can now have a nice cup of coffee. Getting into the office area, there's a one-way system so that people don't walk into each other, which does happen often back in the olden days. Despite it being a bit annoying, people do following the rules, at least in the beginning. When I got to the workspace where my team usually sits, it's refreshing to see everyone smiling again, and there's definitely a back-to-school vibe that everyo...

How to: Create Passwordless SSH Remote Login

The intention is simple: just let me in without asking for password again and again! Follow the steps to achieve this: 1. Generate RSA key from host machine (skip this if you have already got one) ssh-keygen -t rsa -C <youremail@email.com> Accept the default location and DO NOT give a password to it. 2. Copy the RSA key generated to your remote machine cat ~/.ssh/id_rsa.pub | ssh root@<remotemachineipaddress> 'cat >> ~/.ssh/authorized_keys' So far, it is all done. 3. A step further It would be great if can we save the time on typing the hideous 'SSH' and 'blarblar@blar.blar.blar.blar' as well, wouldn't it? Set up an alias for it from your host machine then. alias apple='ssh root@<remotemachineipaddress>' Put the line into '~/.bashrc' so that it would persist. And there we go, apple is your new login!