G33K-TRICKS - Your source to Tips and Tricks : Interesting Tricks
Showing posts with label Interesting Tricks. Show all posts
Showing posts with label Interesting Tricks. Show all posts

Thursday, October 18, 2018

How to Setup SFTP server for Free



What exactly SFTP is?

SFTP (SSH File Transfer Protocol) is a secure file transfer protocol and it runs over the SSH and comes with all auth and security that ssh supports. Now-a-days FTP or FTPS is getting replaced by SSH as FTP is considered as not so secure.

The SFTP protocol runs over the SSH protocol as a scheme and it was designed by Tatou Ylonen.
Special thing about SFTP is , there is no ports exposed . 

SFTP VS. FTPS
People usually wish to check SFTP vs. FTPS. FTPS is essentially the previous ftp protocol run over SSL (Secure Sockets Layer) or TLS (Transport Layer Security).

Benefits of FTP over SFTP includes,
FTPS is essentially FTP, which implies it's code mode, which might corrupt files if the mode isn't properly set and SFTP runs over SSH within the normal SSH port. Thus, no extra ports have to be compelled to be opened on the server and no extra authentication must be maintained. This simplifies configuration and reduces the probability of config errors.
FTPS wants sophisticated firewall configuration and might not work NAT. Ports 989 and 990 have to be compelled to be open. 
FTPS needs an additional server software system package to be put in and patched, whereas SFTP comes with SSH.
What's more, FTPS supports each active and passive modes , that additional complicates firewall configurations and is susceptible to issues.
FTPS can't be used as a File system. 

Here are easy steps to setup the Free SFTP server

To setup the Free SFTP server you can download the Rebex Tiny SFTP server
from https://labs.rebex.net/tiny-sftp-server
And surprisingly, it is free for Commericial and Non-commercial purpose.
Once download is finished, unzip the zipped file and run the "RebexTinySftpServer.exe" file.
There would be another file named "RebexTinySftpServer.exe.config" file which is a server configuration file with below config settings available by default.
The configuration is straight-forward , key-value pair and easy to understand.

<?xml version="1.0" encoding="utf-8"?>
<configuration>
<appSettings>
<!-- user and root dir -->
<add key="userName" value="sftpuser"/>    
<add key="userPassword" value="sftpuser"/>
<add key="userRootDir" value="data"/>

<!-- user public keys for public key authentication (optional) -->
<add key="userPublicKeyDir" value=""/>

<!-- misc config -->
<add key="showUserDetailsOnStartup" value="true"/>

<!-- security -->
<add key="rsaPrivateKeyFile" value="server-private-key-rsa.ppk"/>
<add key="rsaPrivateKeyPassword" value="my-super-secure-password"/>

<add key="dssPrivateKeyFile" value="server-private-key-dss.ppk"/>
<add key="dssPrivateKeyPassword" value="my-super-secure-password"/>

<!-- port -->
<add key="sshPort" value="22"/>

<!-- start server when application is started? -->
<add key="autoStart" value="false"/>
</appSettings>

</configuration>

As SSH works on port 22 so config also has the same.
For further security , you can create RSA and DSA keys (.ppk) and provide the password in config which was used while creating the keys.
If you are not comfortable in creating the SSH keys, you can you this awesome free tool that runs on Windows called "PuttyGen" (a utility for RSA and DSA key generation )
Link to download : https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html

If you are working with any SFTP client and you are just looking for test connection with SFTP Server, you dont need to host one. Rebex has already provided a dummy sftp running server at
test.rebex.net  Use demo as username and password as password



Please Note: REBEX SFTP server store the password in clear text as you can see from the config file.
Do let me know if you have any other SFTP server that can be easily setup

Saturday, May 6, 2017

Inception with Firefox Browser



I am sure you must have seen the movie Inception by Christopher Nolan. The movie is based on a wild theory of dreaming inside a dream. Though we cannot dream with Firefox but the trick is opening a browser inside Firefox. Yes, you can open a new browser tab in the browser tab. That sounds confusing as the movie was.
Here is a screenshot to simplify your thought.

Firefox Inception


This is what you need to do

Open Firefox
Type chrome://browser/content/browser.xul  in the address bar and press Enter
Baam! Inception

P.S.: Think, how did I get the screenshot of the webpage in this webpage while creating this webpage.

Sunday, December 18, 2016

What are the Best ways to make money



50 Best ways of making money:

Everyone is dreaming about how to make money and some of them gets succeeded and some don't.It purely depends on how much effort you are putting to achieve it.
Im this post I will be explaining you about the different ways to earn money by spending quality efforts on quality places to get what you deserve.
Honestly, I have tried many of them hence I could come up with the list of 50 ways to earn money.
So let's start.

1. Create a Blog

Ofcourse creating a blog is one of the preferred way of earning regular passive income online. But, remember it comes with a price. Lots of hardwork and smartness is required to do so. Blogging is Suitable for, People who love to write especially interesting ones. And those who like to share their knowledge and expertise with the rest of the world.

Skill Required for blogging: Ability to express knowledge in written form in simpler and effective way.

Time required to start a blog: If you already have an experience on how to blog, it would be matter of few hours to start a blogging site.For newbies, maximum of two days would be enough to start one.

 Here are some tips to start a blog: Take a area which you are really good at and you have enough knowledge about it, so that you can write multiple of topics related to that area.
Limit your blog to a particular domain, dont let it scatter here there.
If blog is about mobiles, try not to put Games related stuff to this blog.
The blog should be important to the readers, they are the one who want to read. So, keep it mind, write in a way that you are in a readers shoes. If you can understand it, he can as well.
Update the blog as regularly as possible. The less you update the lower it gets the viewership.
If your blogs gets comments, always respond to them in professional way.

 Finally , Monetizing (i.e.making money) from your blog: 

Best way to monetize the blog is by recommending people the products or service related to your blog's topic (aka Affiliate). You can do that by writing a nice article in details about it and then you can ask people to buy the product with a specific link which you shared. The link will contain a the code which specifically linked to your ID and if someone buys that product/service, you will be given a share. e.g Amazon affiliate
Its kind of getting commission on selling the products.

Another way is to join Google Adsense. With Adsense you can post ads in your blog and whenever someone clicks/views the ad you get paid. Please note that the value of single click on ad is very very low. It could be 0.02$ to 0.1$ (can vary also)

Click to Continue Reading the Next Way of making money

Check Out the Latest Posts

Recent Posts Widget