Showing posts with label SSH. Show all posts
Showing posts with label SSH. Show all posts

Feb 9, 2015

Set up SSH for Git in Windows

Do the following to verify your installation:

Double-click the Git Bash icon to start a terminal session. Enter the following command to verify the SSH client is available:


$ ssh -v

If you have ssh installed, go to the next step. List the contents of your ~/.ssh directory.


$ ls -a ~/.ssh

If you have not used SSH on Bash you might see something like this:


rishi@rishi-PC ~
$ ls -a ~/.ssh
ls: /c/Users/rishi/.ssh: No such file or directory

If you have a default identity already, you'll see two id_* files:


rishi@rishi-PC ~
$ ls -a ~/.ssh
.    ..    id_rsa    id_rsa.pub

Enter ssh-keygen at the command line. The command prompts you for a file to save the key in:


ssh-keygen
ssh-agent /bin/bash
ssh-add ~/.ssh/id_rsa
ssh-add -l

In your terminal window, cat the contents of the public key file.


Image Source

Jul 3, 2011

How to enable mod_rewrite in centos via SSH

This is a very simple question, but for beginners it is little bit difficult,
Now assuming that everything is installed, open the httpd conf file and start editing it,

You can find this file in

/etc/httpd/conf/httpd.conf

or directly edit it

[php]vi /etc/httpd/conf/httpd.conf[/php]
in this file search for Directory "/var/www/html" this can be on line 290-320

You will find a line of code, just like below

[php]AllowOveride None[/php]

Just change it to

[php]AllowOverideAll[/php]

Save it, and exit, mod_rewrite is enabled on your server.