ssh trick – ssh to remote host with bastion host

2019-09-16 1 min read bash Learning Linux
Lot of times, you have to ssh to a server with bastion host. If you dont know what is bastion host then see this: Now, in such cases, either you add an entry in “~/.ssh/config” to route the ssh through the bastion host or do ssh to bastion host and then ssh from there to the actual host. But wait, there is always a better way: ssh -t <bastion host> ssh -t <actual host> You can use the usernames as required for the 2 hosts and then you will have to enter passwords, first for the bastion host and then the actual host. Continue reading

terminal.sexy for URxvt

2019-08-19 1 min read Linux
Sometime back I posted about terminal.sexy – make your teminal sexy. I personally use URxvt terminal and hence need the xrdb files to apply the theme. It’s pain to go to the website everytime I want to change my theme and hence I wrote a python script that can use the github repo and convert the files to xrdb files. Here is the link to the script: terminal.sexy script for xrdb

Add files to dropbox with single curl command

2019-07-08 1 min read bash
I have been thinking of posting this for sometime now. This is very useful, when you are working on a different Linux box and want to upload a file to dropbox. So, before you run this command, you need to create your auth token in Dropbox developer API page. Once that is done, need to change the 2 parameters in command below. Export your Access token and run the below command. Continue reading
Older posts Newer posts