LinuxQuestions.org
Review your favorite Linux distribution.
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 07-25-2012, 09:10 AM   #1
Flenix
LQ Newbie
 
Registered: Jul 2012
Posts: 2

Rep: Reputation: Disabled
Bit stuck with connecting to CentOS 6.3 via SSH


Hey guys,

OK, a quick background - I've been using a Linux server for a minecraft server for the past 18 months. I had root the entire time, done plenty of playing around with it and know my way around the basics. The server was rented through a company, so they had done all the installation and setup.

Today, I decided I wanted to make a local version of the server. I installed CentOS just fine onto an old PC I had lying around (When I say old, its a quadcore so specs are fine)
...This is where I got stuck.

If I plug a screen directly into the machine, I get the terminal just fine as I'd expect. However, I want to control it via PuTTY from a Windows machine. I've searched for the past 2-3 hours, and just can't get my head around it. I've got Samba installed, and as far as I'm aware it is set up, but when I try and connect with PuTTY on the windows machine I get "Unable to open connection to server.name - Host does not exist"

It's probably just a very stupid, newbie mistake... but thats why this is in the newbie section I guess! Note the computer I'm currently trying to use to control it is on the same network, but I will need to be able to do it outside the network too once this is all working.

Thanks
 
Old 07-25-2012, 09:18 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
putty has nothing to do with samba at all.

so you need to...

1) make sure you can ping the server
2) you have the sshd service running on the server
3) your firewall is permitting access on port tcp 22 to the service.

after that, there's really nothing else and this shoudl all work by default.

But now I see a "host does not exist" message in your reply none of that above actually matters. You have a DNS issue. Windows doesn't magically know your machines hostname. Just use the IP. Job done.
 
Old 07-25-2012, 09:54 AM   #3
Flenix
LQ Newbie
 
Registered: Jul 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
As I said, probably a newbie mistake! Will try that.

As for the samba thing, various articles around the web mentioned it. For example this talks about Samba in the introduction then explains logging in with PuTTY, so I assumed both were needed.

EDIT: 15 seconds later and I'm connected just fine. Doh!
How would I connect from somewhere outside my network though? I just used the 192.168.x.x IP, As far as I'm aware my actual IP address is for my internet connection and not a specific machine, so how would I tell it what machine to connect to... if that makes sense? :P

Last edited by Flenix; 07-25-2012 at 09:57 AM.
 
Old 07-25-2012, 01:45 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
you would use port forwarding. great guides for most any home router at portforward.com
 
  


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
Access Denied when connecting to centos VPS via SSH xezesis Linux - Server 4 04-18-2012 11:07 AM
Not able to launch a 32 bit java installer in 64 bit centos 6.2 Seheri Red Hat 6 03-27-2012 06:56 PM
Not able to launch a 32 bit java installer in 64 bit centos 6.2 Seheri Linux - Newbie 9 03-27-2012 06:29 PM
LXer: Install HVM FreeBSD 7.0 DomU (32-bit) at Xen 3.2.1 CentOS 5.1 Dom0 (64-bit) LXer Syndicated Linux News 0 05-01-2008 08:00 PM
LXer: Install Xen 3.1 Solaris domU (64 bit) under CentOS 5 dom0 (64 bit) LXer Syndicated Linux News 0 09-21-2007 12:00 AM

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

All times are GMT -5. The time now is 09:24 PM.

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
Open Source Consulting | Domain Registration