Access your server via SSH with Putty
Anthony Gee | Mar 15, 2007 | Comments 16
This tutorial will show you how to access a remote computer using Putty.
Putty is very popular and powerful remote client for Raw, Telnet, Rlogin and SSH protocols.
Putty can be downloaded from Putty.nl
It is stand alone application so once downloaded it can be used without installation. Just start putty.exe and you will see the Putty configuration screen.
Put the IP of your server or a particular domain name pointed to it into ”Host Name (or IP address)” filed as it is shown above and set the ”Protocol” to be SSH.
Then expand the ”Category” section in left and then choose SSH.
Once it is opened set the ”Preferred SSH protocol version” to be ”2” and then go back to the first screen as clicking on ”Session” on the top.
To have this session stored type a name in the ”Saved Sessions” field then ”Save”. From now on you will need only to click on the stored session name and this will open a window with the saved settings.
If you want to see if there are any error messages while using Putty, you can choose the ”Close window on exit” option to be ”Only on clean exit”.
When you are ready click on ”OK” to start the login to the server.
If you are logging for a first time you will see a security alert:
Click “Yes” and the next will be the log-in prompt where you should put your server credentials:
Once you logged in you can continue to use Putty for server management .
For example if you type
1 |
#reboot |
This will reboot the server
Tags
- putty restart server (22)
- 6P4G (1)
- safebt2 (1)
- roar4vb (1)
- restart linux server putty (1)
- putty logical name of remote host (1)
- offer4dr (1)
- nearby4ep (1)
- labor3of (1)
- how to access galilleo via putty (1)
- eyehhx (1)
- design2ck (1)
- armyloo (1)
- ZF25 (1)
Filed Under: Putty
About the Author: Anthony G. is an IT specialist with more than 9 years of solid working experience in the Web Hosting industry. Currently works as server support administrator, involved in consultative discussions about Web Hosting and server administration. One of the first writers in the Onlinehowto.net website, now writing for Free Tutorials community - he is publishing tutorials and articles for the wide public, as well as specific technical solutions.
How to restart server from putty to reboot?
Trich, just when you are logged in on the server type:
shutdown -r now
This command will reboot the server.
how can I add:
204.23.21.9 darma.com http://www.darma.com
to my hosts file using console?
You can use ‘vi’, ‘nano’, or any other Linux editor. To edit the “hosts” file, type:
vi /etc/hosts
then add the line.
Another simple way is just to send the text directly trough the console with:
cat >> /etc/hosts and then in paste the line and press Ctrl+D twice. This will add the line to the end of the /etc/hosts file
hit
Thank you Tony for your answer. I read about the cat command and I am afraid I can mess something.
Using VI I am not able to type inside the file, or if I copy-paste, the line starts without the first few symbols, and then I am not able to edit it. How can I use VI and start directly typing or pasting, and how I can save my work then?
Hey Rod, check this section out for [url=http://www.freetutorialssubmit.com/Tutorials/VIM-editor/Common-VIM-editor-commands/228]vi commands[/url]
yup, got it already.
Thank you Tony
What is the command to add ssh user with putty?
To add new ssh user type in the console:
useradd newuser
Then to set password for this user type:
passwd newuser
By default adding user should create home folder which like:
/home/newuser
If there is no such folder (under Ubuntu Linux is happening very often) – check the passwd file whether the user exist and what should be the home folder with this command:
grep newuser /etc/passwd
newuser:x:1002:1003::/home/newuser:/bin/bash
I was able to access my server with Putty.
Thank you!
Probably you are logged as different user than root.
try:
sudo reboot
or switch to root user if you have the password like:
su – root
and then reboot.
I am not able to reboot my server using putty. The message is : reboot: Need to be root
what is the password we have to give when we login the first time into putty
what is the password we have to type the first time we login??
Hi Archana. The password should be provided by the server’s provider, or the administrator installed linux for you.
Hi Archana. The password should be provided by the server’s provider, or the administrator installed linux for you.