April 10, 2014

LOGIN TO SERVER USING PuTTY WITHOUT PASSWORD

Filed under: General Topics,Linux Basics — Bella @ 8:53 pm

    SSH is a network protocol that provides secure access to a computer. When we need to connect to a remote computer via SSH, that computer should have a SSH server running on it. There are different ways a client can authenticate itself to the server. A typical authentication mode will be to enter a password when logging into a remote system.

Using the below mentioned steps we can directly login to Linux server without password authentication step.

First we will need to download PuTTY and PuTTYgen.

  • PuTTY: the Telnet and SSH client itself.

  • PuTTYgen: an RSA and DSA key generation utility.

>> Download the latest version of putty.exe and puttygen.exe and start puttygen.exe.

>> We need to generate a key for this process. Puttygen window will appear. Leave the default ‘SSH-2 RSA’ selection. Select the option “Generate”.

>> Select “Save private key” and save the file in a suitable location. Then open the file and select the key written under “Public-Lines 6:”

>> Open putty and type the IP of Linux server and enter into the server using password.

>> Then go to home directory and create a file “authorised_keys” using vi editor in “~/.ssh” directory and paste the key in the file.

>> Change the permission of the file using the command “chmod 600 ~/.ssh/authorized_keys”.

>> Open putty.exe type the IP and then select the option “Connection >> Data”. Type the “Auto-login username” (the username we user for login).

>> Select the option “SSH >>Auth” and browse the key file.

>> Select open.

Finally we will be able to login without using password.

AddThis Social Bookmark Button

April 9, 2014

Webmail loading blank page OR not able to login

Filed under: Technical Articles — Bella @ 2:08 am

Issue :

While accessing Webmail via Squirrelmail, Horde or Roundcube if you are receiving a blank screen or if all the three mail clients tells that the login failed because of wrong user or password, please have a check with the below steps:

Solution :

1. Run the following command in root SSH:

#/scripts/whoowns domain.com

Where domain.com is the domain name in question.

2. If it doesn’t show any ownership, then move the following files:

#cd /etc

#mv userdomains userdomains.bak

#mv domainusers domainusers.bak

#mv trueuserdomains trueuserdomains.bak

At that point, run the following script and recheck ownership for the domain:

#/scripts/updateuserdomains

#/scripts/whoowns domain.com

If instead of showing no ownership, the domain showed the wrong ownership, you’d have to edit the /var/cpanel/users/username file that is improperly owning the domain to remove the DNS line that it has for that domain, then run the above move and updateuserdomains commands.

If after running the command /scripts/whoowns domain.com, you are receiving the below error:

=========

warn [updateuserdomains] Unable to read /etc/trueuserdomains: No such file or directory

warn [updateuserdomains] Unable to read /etc/userdomains: No such file or directory

== WORKAROUND ENABLED ==

Serious Problem — This should never happen!!

The hostname (domain.tld) is owned by the user <username>

== WORKAROUND ENABLED ==

==========

the error will be due to the conflict between hostname and the account.

You’ve set your hostname for the machine to the same domain as this cPanel account. Since the hostname is owned by nobody, it cannot also be owned by username.

Please go to WHM > Change Hostname area and change your hostname to server.domain.tld instead of domain.tld.

After you’ve changed the hostname to be a subdomain off the main domain rather than the main domain itself, then re-do the steps I noted to move those files again and run /scripts/updateuserdomains at that point.

The ownership should be properly set after you get the hostname off your main domain name.

AddThis Social Bookmark Button

Check emails from other accounts using Gmail

Filed under: Miscellaneous — Bella @ 1:52 am

This feature can be used to fetch multiple email account using Gmail. If we have multiple email accounts, we can check them all in Gmail. Gmail’s Mail Fetcher feature first imports all your old messages to Gmail and then continues to bring in new messages sent to your other account. We can add up to 5 accounts in Gmail, including Gmail and other email providers.This all works using POP3.

General settings for using this features with Gmail.
————————————————————–
1. Log into your Gmail account.
2. Click the gear icon in the upper right corner of the page and select Settings.
3. Click the Accounts tab and locate the Check mail from other accounts (using POP3) section.
4. Click Add a POP3 mail account you own.
5. Enter the full email address of the account from which you would like mail fetched.
6. Click Next Step.
7. In the Password field, enter the password for the email address you provided.
8. Select Port 110 for a POP3 connection. For a secure email connection, use Port 995.
9. Click the check-boxes next to the options that best suit your needs:
    Leave a copy of retrieved messages on the server
   Always use a secure connection (SSL) when retrieving mail
   Label incoming messages
   Archive incoming messages
10. Click Add Account.

AddThis Social Bookmark Button

January 3, 2014

Site unreachable via Incapsula

Filed under: Miscellaneous — Bella @ 1:44 am

This error may occurring if website uses Incapsula for maintaining traffic.
Incapsula provides every website, regardless of its size, with an enterprise-grade PCI-certified Web Application Security, ensuring your website is safe and available.Upon completion of the DNS changes, as outlined by Incapsula, you are effectively directing all of your traffic via Incapsula’s network of proxy servers (Incapsula proxies). Incapsula proxies access your servers directly, and then serve content to the site visitors. Requests to your servers are therefore all coming from a limited range of Incapsula IP addresses. This may result in being classified as attack traffic by various traffic limiting mechanisms and denying Incapsula from accessing your servers.
To ensure that traffic to your website passes through Incapsula, you can limit access to it from non Incapsula IP addresses.
In order to do this, a set of rules should be applied to your firewall (or to your .htaccess files) that will block all traffic coming from non-Incapsula IP addresses.In the case of a firewall or rate limiting mechanism that is blocking access, please contact your hosting provider to whitelist Incapsula’s IP ranges.

199.83.128.1 – 199.83.135.254
198.143.32.1 – 198.143.63.254
149.126.72.1 – 149.126.79.254
103.28.248.1 – 103.28.251.254
185.11.124.1 – 185.11.127.254

This list may change from time to time.
In order to allow all traffic coming from Incapsula IPs and deny any access from non-Incapsula IPs insert the following lines into your .htaccess file:

order deny,allow
deny from all
allow from IP1/Mask1
allow from IP2/Mask2

AddThis Social Bookmark Button

November 29, 2013

Parked or addon domains missing in Cpanel Mail account creation tab

Filed under: Miscellaneous — Bella @ 5:02 am

Ever since after the up gradation of WHM to higher versions, there can be many issues of lost or unlisted addon/parked domains in Cpanel. The domains will be present in /etc/userdomains, but still fails to be seen in the email account creation tab in Cpanel. This is mainly beacuse of the XDNS entries in /var/cpanel/users/<cpanel_username>

If your required domains are marked as XDNS, then rename XDNS to DNS of all the required domain entries. After this you have to run the following script to update the userdomains

#scripts/updateuserdomains

After running this script, the domains will be found available for new account creation. Also the previously created accounts will be restored back.

AddThis Social Bookmark Button
Next Page »

Powered by WordPress