Monday, February 13, 2017

How to change hostname in CentOS 6

If you're a noob at linux, the easy way to change hostname is with WinSCP.
Download and install WinSCP
You can also use WinSCP for FTP transfer with SFTP connection

Follow this steps


1. Login to winscp
2. Go to /etc/sysconfig/network
3. Edit by right click network file
4. Change your hostname
5. Save it and Reboot your VPS.
6. Check the hostname with command "hostname"  then enter without qoute.

Or if you prefer using Terminal or Putty, you can always use nano or vi to edit /etc/sysconfig/network.


0 comments :

Post a Comment