Uncategorized

Password less SSH login.

First of all execute the following command: $ ssh-keygen The above command is used for authentication key generation. Then you'll need to copy the new key to your server using: $ ssh-copy-id user@host After the key is copied, SSH into the machine as normal: $ ssh user@host You can now login without entering a password from… Continue reading Password less SSH login.

Advertisements
Uncategorized

Working on Experimental Server.

Today, I worked on Experimental Server that teach me something about: $ sudo I logged into Experimental Server using: $ ssh iamjagjeetubhi@202.164.53.122 But I was not able to open my server in browser using link: http://202.164.53.122/~iamjagjeetubhi/ I was getting the error: 403 Forbidden You don't have permissions to access /~iamjagjeetubhi/ on this server. I was… Continue reading Working on Experimental Server.

Uncategorized

CGI in C++

Common Gateway Interface (CGI) is a standard way for web servers to interface with executable program installed on a server that generate web pages dynamically. Open directory /etc/apache2/ Create a new file "httpd.cfg" with following content ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ <Directory /usr/lib/cgi-bin/> AllowOverride None Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch SetHandler cgi-script Order allow,deny Allow from all AddHandler… Continue reading CGI in C++