LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-07-2016, 09:44 PM   #1
mrleoriches
LQ Newbie
 
Registered: Oct 2016
Posts: 2

Rep: Reputation: Disabled
Using puTTy to connect ssh to centos


I have centos connected to a virtual machine. I downloaded putty but cannot connect the ssh to Centos. I plugged in the ip address into putty but after 20 seconds it says timed out, then I get an inactive msg in the putty box. Any suggestion?
 
Old 10-07-2016, 09:57 PM   #2
killingthemonkey
Member
 
Registered: Mar 2011
Location: Winston-Salem, NC
Distribution: Fedora, CentOS, Linux Mint
Posts: 181

Rep: Reputation: 19
Make sure you've selected SSH and the port is correct. 22 if I remember correctly.

Post a screenshot of your PuTTY window.
 
Old 10-07-2016, 10:51 PM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 19,513

Rep: Reputation: 3133Reputation: 3133Reputation: 3133Reputation: 3133Reputation: 3133Reputation: 3133Reputation: 3133Reputation: 3133Reputation: 3133Reputation: 3133Reputation: 3133
In addition what virtual machine are you runing i.e. Virtualbox or VMware etc and how is the guest's network configured?
 
Old 10-07-2016, 11:58 PM   #4
mrleoriches
LQ Newbie
 
Registered: Oct 2016
Posts: 2

Original Poster
Rep: Reputation: Disabled
Using virtualbox on a bridged adapter
 
Old 10-08-2016, 09:24 AM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 19,513

Rep: Reputation: 3133Reputation: 3133Reputation: 3133Reputation: 3133Reputation: 3133Reputation: 3133Reputation: 3133Reputation: 3133Reputation: 3133Reputation: 3133Reputation: 3133
What version of CentOS?

Make sure the ssh server is running on the guest. Typically the default firewall configuration allows ssh traffic so unless you changed something should work. Make sure you are using the IP address of the guest and not the host.
 
Old 10-09-2016, 09:10 AM   #6
Jjanel
Member
 
Registered: Jun 2016
Distribution: any&all, in VBox; Ol'UnixCLI; NO GUI resources
Posts: 999
Blog Entries: 12

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
I had to do: service sshd start
Can the host (Win? Run 'DOS' cmd) ping the CentOS guest IP address [like 192.168.x.y]?
And guest ping host? netstat -l|grep -v unix; ps -ax|grep ssh; netstat -rn; ifconfig

Last edited by Jjanel; 10-09-2016 at 09:16 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Connect to Debian from Win with ssh/putty - Error: "connection timed out" WildBoy_from_ITALY Linux - Server 9 12-17-2013 07:50 AM
Cant connect to Centos via Putty using ssh. Error name unable to resolve Uva18 Linux - Newbie 7 08-10-2013 12:06 PM
Trying to set up a static ip so I can ssh in using putty on fresh centos 6.3 install Xitherius Linux - Networking 3 01-28-2013 05:53 PM
Help with Ubuntu server remote ssh and local network ssh issues using putty. scottpops Linux - Server 8 05-17-2012 06:07 PM
CentOS 5.6 can connect to internet, but can't display websites or SSH SecurityGate Linux - Newbie 4 05-20-2011 02:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration