Compare VPS Hosting and Dedicated Server

ComfortVPS is here to help you find the right hosting, Save Time and Save Money!
Focus on cheap Windows VPS Hosting and Linux VPS Hosting Since 2012, and Dedicated Server NOW

SSH Usage

  • Free SSH client for windows 7/8/xp/2012/2008/2003
    The surest way to connect to a Linux VPS or Xen VPS Hosting is to use SSH. You need use a SSH client software to remote control your Linux server via SSH command. There ary many Free SSH client for windows 7 and windows 8, windows XP or windows server 2012 / 2008 / 2003, we recommend below Free SSH client for windows: Free SSH client NO.1 : www.putty.org - PuTTY is a very popular free SSH client for Windows. It is an SSH1+SSH2 implementation. PSCP, an scp-style program for Windows, is also available. PuTTY works on multiple platforms include windows and it is free. Mac OS X users can also use...
  • How to change password via SSH in Linux/Centos?
    How to change password via SSH in Linux/Centos? First, you need login SSH to your Linux server, then use command passwd to change password. below example is change root password for a Centos: -bash-3.2# su - root  - you don't need to do this if you already login ssh as root[root @ ComfortVPS.com ~]# passwd root - usage: passwd <accountName> , passwd root means change password for accountname rootChanging password for user root.New UNIX password:   (You should type your new password here)Retype new UNIX password:   (You should retype your new password again)passwd: all authentication tokens updated successfully. Done, you have successfully changed your password!  ...
  • How to change root password?
    1. Please use command passwd root to change password for root via SSH if you can login SSH. 2. You can reset root password on vps control area if you can't ssh login, see below image. Then you need reboot the vps on control area. The root password will change after you reboot the vps! If it shows "error,contact support" message, please change to a password only have letter and number then try again.   3. If you reload os for XEN VPS, The root password will be reset to original password which you can find it at the vps welcome email. Please follow above...
  • How To Install/Setup Desktop/KDE/GNOME/VNC on CentOS 6 / Linux
    If you want use GUI interface for Linux, Firt thing is You need install centos6.x for your vps or server. We recommend at least 512MB memory XEN VPS for Linux desktop. 1GB ram is better.   Step1: Install GNOME Desktop on Centos: yum -y groupinstall "Desktop" Step2: Install VNC server and firefox on Centos: yum -y install tigervnc-server xorg-x11-fonts-Type1 firefox   Step3: Start the VNC server on Linux  Login with the user you want to use the desktop for (safer to use a user other than root), and run the following command: vncserver When you run the command the first time, you will be...
  • How to use wget to test bandwidth / download speed ?
    How to use wget to test bandwidth / download speed ? try below wget command to download a 10MB or 100MB file from cachefly. wget http://cachefly.cachefly.net/10mb.test--2013-06-11 13:55:00--  http://cachefly.cachefly.net/10mb.testResolving cachefly.cachefly.net... 205.234.175.175Connecting to cachefly.cachefly.net|205.234.175.175|:80... connected.HTTP request sent, awaiting response... 200 OKLength: 10485760 (10M) [application/octet-stream]Saving to: `10mb.test' 100%[===================================================================================================================>] 10,485,760  9.13M/s   in 1.1s     2013-06-11 13:55:02 (9.13 MB/s) - `10mb.test' saved [10485760/10485760] 9.13 MB/s means 9.13x8=73Mbps/s, means your server's bandwidth is at least 73Mbps   Other bandwidth speed test downloads: Download 100MB file from cachefly:  wget http://cachefly.cachefly.net/100mb.test Download 100MB file from Seattle:   wget http://speedtest.sea01.softlayer.com/downloads/test100.zip Download 100MB file from Dallas  :  wget http://speedtest.dal01.softlayer.com/downloads/test100.zip...
  • How to force release/free cached memory via ssh command on linux
    How to force release/free cached/buffer memory/ram via ssh command on linux​? Command free via ssh only shows how many memory used, but people always seem to forget about that. Cached memory is still techincaly *free* memory that can be used. The Linux OS just doesn't free it, it keeps it there to help speed up other applications that may need the data there. If you still want force release those cached memory/ram, and it bothers you that its not really *freeing* the memory, you can force to free the cached/buffered memory to clear out by ssh command: echo 1 > /proc/sys/vm/drop_caches ...
  • How to send email via SMTP with PHP and Gmail/Hotmail?
    Lots of spamer use 25 port to send mail. By default port 25 was forbidden for ComfortVPS,  you need submit a support ticket if you want us open 25 port for you . But you can use 3rd party SMTP service with 465 or 587 port to send email without contact us. eg, Gmail, Hotmail Below is How to send email via SMTP with PHP and Gmail? For example, We usually use a php class PHPMailer(very popular) with similar settings to this ones: $mail = new PHPMailer(); $mail->IsSMTP(); $mail->CharSet = 'UTF-8'; $mail->Host = "smtp.gmail.com"; // SMTP server example, use smtp.live.com for Hotmail $mail->SMTPDebug...
  • Wget: Unable to resolve host address(Ping: Unknown host)
    How to resolve DNS Error if you got a "wget: unable to resolve host address" or "ping: unknown host" error? wget http://sourceforge.net/projects/autodl-irssi/files/autodl-setup/download Resolving sourceforge.net (sourceforge.net)... failed: Temporary failure in name resolution. wget: unable to resolve host address `sourceforge.net' wget http://www.google.com/ Resolving www.google.com (www.google.com)... failed: Temporary failure in name resolution. wget: unable to resolve host address `www.google.com' ping google.comping: unknown host google.com This is a normal DNS setting error, please ping 8.8.8.8 to find out your network works or not first If ping 8.8.8.8 works, then you should run below command via ssh root: echo 'nameserver 8.8.8.8' > /etc/resolv.conf; After that, please try...
  • How upgrade CentOS 6.3 to 6.4/6.5/6.6 or from CentOS 5.x to 5.9
    You can easily upgrade to newest CentOS version if you are use a dedicated server or Xen VPS,KVM VPS,HVM VPS. But you can not upgrade if your VPS is based on OpenVz How upgrade CentOS 6.3 to 6.4/6.5/6.6 or from CentOS 5.x to 5.9?  Make sure your server is a dedicated server or Xen VPS,KVM VPS,HVM VPS Backup data  SSH login via root and run command "yum -y upgrade" Wait 10-60 minutes, done! Check CentOS version by command "cat /etc/redhat-release" NOTE: You can not upgrade from CentOS 5.x to 6.x We recommand you upgrade ASAP after reload OS if you want try new version...
  • How-upgrade-Debian6-Squeeze-Debian-7-Wheezy
    How to upgrade Debian6 Squeeze to Debian 7 Wheezy? Make a backup before upgrade Debian  vi /etc/apt/sources.list replace with below: deb http://mirrors.kernel.org/debian/ wheezy main deb-src http://mirrors.kernel.org/debian/ wheezy main   deb http://security.debian.org/ wheezy/updates main deb-src http://security.debian.org/ wheezy/updates main   # wheezy-updates, previously known as 'volatile' deb http://mirrors.kernel.org/debian/ wheezy-updates main deb-src http://mirrors.kernel.org/debian/ wheezy-updates main apt-get update apt-get dist-upgrade check debian version via command "lsb_release -a"Distributor ID: DebianDescription:    Debian GNU/Linux 7.1 (wheezy)Release:        7.1Codename:       wheezy
  • How to change hostname via SSH for Linux Centos?
    How to change hostname via SSH for Linux Centos? We recommend you use below command to change hostname via ssh What's you need to do is: Copy and post below single command line via SSH root login. change the YOUR-NEW-HOSTNAME to whatever you want for your hostname. then run the command(press Enter), Done! cd /tmp; wget http://www.comfortvps.com/script/shell/ssh/sethostname.sh; sh ./sethostname.sh YOUR-NEW-HOSTNAME;
  • MySql cannot start:Another MySQL daemon already running with the same unix socket
    Sometimes you may got a mysql can not start issue, shows error "Another MySQL daemon already running with the same unix socket"  [www.comfortvps.com]# service mysqld restart  Stopping mysqld:  [  OK  ] Another MySQL daemon already running with the same unix socket. Starting mysqld:  [FAILED] [www.comfortvps.com]# ps -ef | grep mysql root      4825  4774  0 01:11 pts/0    00:00:00 grep mysql this means mysql.sock exists How to fix it? Based on Centos, an additional method for getting it back up again when you run into this problem is to move mysql.sock: [www.comfortvps.com]# mv /var/lib/mysql/mysql.sock /var/lib/mysql/mysql.sock.bak [www.comfortvps.com]# service mysqld restart Stopping mysqld:...
  • Auto installer of Nginx PHP(php-fpm) MySql phpMyAdmin in CentOS
    If you are not good at SSH command and you want install Nginx PHP(php-fpm) MySql phpMyAdmin for your small website, you can use our Automatically install script of Nginx PHP(php-fpm) MySql in CentOS. What's you need to do is: Copy and post/run below single command line via SSH root login. wait 5-15 minutes(depending on the software download speed from your server), Everything is Done!  wget --no-check-certificat -O /tmp/install-nginx-php-mysql.sh https://raw.github.com/ComfortVPS/Nginx-PHP-MySql-phpMyAdmin/master/install-nginx-php-mysql.sh; sh /tmp/install-nginx-php-mysql.sh; The Auto installer of Nginx PHP(php-fpm) MySql only works on CentOS 5.x/6.x 32bit or 64bit now, work perfectly for Xen VPS ram >= 128MB. Recommand RAM(memory) is >= 256MB for CentOS 32bit and...