Jump to content


Photo

cannot connect to server via PuTTy (SSH)


  • Please log in to reply
18 replies to this topic

#1 webguync

webguync

    Advanced Member

  • Members
  • PipPipPip
  • 947 posts

Posted 07 September 2011 - 10:37 AM

I am trying to connect to my Linux server via PuTTy on my windows desktop. I have so far been unsuccessful. I called tech support of my hosting company (Media Temple), and all they could tell me is they could connect themselves. I don't think they were using PuTTy though. I am using the default setting. And putting in the correct host name. Then when the login prompt comes up. I put in ssh root@ipaddress.com. I keep getting access denied. I verified that the password I use is correct. and I believe the settings I am using are correct. Any other way to troubleshoot?

#2 neil.johnson

neil.johnson

    Advanced Member

  • Gurus
  • 3,580 posts
  • LocationLiverpool, UK

Posted 07 September 2011 - 11:10 AM

Unless this is your own dedicated server a hosting company will not let you login to a server as the root user. Get the correct username.
Also you just use the username to login without any @ipaddress whatever that is i.e

user: root
password: abcdef

To start, press any key. Where's the 'Any' key?


#3 webguync

webguync

    Advanced Member

  • Members
  • PipPipPip
  • 947 posts

Posted 07 September 2011 - 11:36 AM

sorry, I forgot to mention it is a dedicated server.

#4 premiso

premiso

    Trollololol

  • Members
  • PipPipPip
  • 6,969 posts
  • LocationHairy Beaverville

Posted 07 September 2011 - 01:54 PM

Perhaps you need a guide: http://webmaster.iu....rve_putty.shtml
Did I assist you? Feeling like contributing to my gaming addiction?

Assist with my gaming addiction! | Free Flash Games | lxt Article Site

#5 j.smith1981

j.smith1981

    Advanced Member

  • New Members
  • PipPipPip
  • 333 posts
  • LocationHarrogate, North Yorkshire

Posted 14 September 2011 - 03:46 AM

Don't mean to sound at all patronising but is there any firewall enabled on your server?

If so open port 22, I think though as someone else is looking after them you won't need to worry about security since they will defend against this, having it being their network as such.

I mean I use my own and use my routers software for my security (having it being a custom based PC for this task).
-

#6 trq

trq

    Advanced Member

  • Administrators
  • 31,023 posts
  • LocationSydney, Australia.

Posted 14 September 2011 - 04:40 AM

Don't mean to sound at all patronising but is there any firewall enabled on your server?

If so open port 22, I think though as someone else is looking after them you won't need to worry about security since they will defend against this, having it being their network as such.

I mean I use my own and use my routers software for my security (having it being a custom based PC for this task).


Dedicated servers are generally hosted within a DMZ and all traffic is forwarded to them directly. It is usually the responsibility of the administrator to protect there own resources.

http://thorpesystems.com | http://proemframework.org | http://github.com/trq

SmtpCatcher - A very simple mock sendmail useful for testing PHP mail scripts.
OPM - My Linux package manager.


#7 j.smith1981

j.smith1981

    Advanced Member

  • New Members
  • PipPipPip
  • 333 posts
  • LocationHarrogate, North Yorkshire

Posted 14 September 2011 - 04:42 AM

Ahh ok so it could possibly be the firewall on the actual server itself then?
-

#8 trq

trq

    Advanced Member

  • Administrators
  • 31,023 posts
  • LocationSydney, Australia.

Posted 14 September 2011 - 04:44 AM

No, the op is getting a prompt, this means the connection was successful.

http://thorpesystems.com | http://proemframework.org | http://github.com/trq

SmtpCatcher - A very simple mock sendmail useful for testing PHP mail scripts.
OPM - My Linux package manager.


#9 webguync

webguync

    Advanced Member

  • Members
  • PipPipPip
  • 947 posts

Posted 14 September 2011 - 08:15 AM

yea I do get the login prompt. I am using port 22. Can't get access still though.

#10 trq

trq

    Advanced Member

  • Administrators
  • 31,023 posts
  • LocationSydney, Australia.

Posted 14 September 2011 - 08:16 AM

Describe exactly what it is your doing and what exactly is happening?

http://thorpesystems.com | http://proemframework.org | http://github.com/trq

SmtpCatcher - A very simple mock sendmail useful for testing PHP mail scripts.
OPM - My Linux package manager.


#11 webguync

webguync

    Advanced Member

  • Members
  • PipPipPip
  • 947 posts

Posted 14 September 2011 - 08:44 AM

sure, I open up PUTTY.EXE.
for the host name I put in the host domain (I also tried IP address). The Port is 22 and the connection type is SSH.

Per the instruction from my hosting provider for the login I should put in ssh root@serveripadress.com since it is a dedicated server.

I get an access denied message when I do this. I verified with the tech support of the hosting provider that what I am doing is correct.




#12 trq

trq

    Advanced Member

  • Administrators
  • 31,023 posts
  • LocationSydney, Australia.

Posted 14 September 2011 - 09:02 AM

It is not correct via putty. On Linux you would use the ssh command to connect to an ssh server, via Windows you need to use a client called putty. Hence, typing 'ssh whatever' as your username makes no sense.

I suggest following the instructions neil.johnson posted several posts ago.

http://thorpesystems.com | http://proemframework.org | http://github.com/trq

SmtpCatcher - A very simple mock sendmail useful for testing PHP mail scripts.
OPM - My Linux package manager.


#13 webguync

webguync

    Advanced Member

  • Members
  • PipPipPip
  • 947 posts

Posted 14 September 2011 - 11:10 AM

I tried connecting using just the domain name  when I get prompted the login and that doesn't grant me access either.

#14 j.smith1981

j.smith1981

    Advanced Member

  • New Members
  • PipPipPip
  • 333 posts
  • LocationHarrogate, North Yorkshire

Posted 14 September 2011 - 11:23 AM

No, the op is getting a prompt, this means the connection was successful.


Sorry I am a bit asleep today, do you have a home directory and if not (just on the off chance of course) is your ssh setup from ./etc/ssh mean you have to have a valid directory to login? Some servers I have seen must require a home directory to login.

Apart from that I wouldn't know.
-

#15 webguync

webguync

    Advanced Member

  • Members
  • PipPipPip
  • 947 posts

Posted 14 September 2011 - 11:32 AM

don't know if this helps, but the server is hosted with Media Temple and it's a dedicated (DV) server. Here are the instructions they provide.

http://kb.mediatempl... your server#dv

this is why i was doing the ssh root@70.32.86.175 deal. I was following their instructions. I even called them to make sure I was putting in the correct info and they said I was.

#16 neil.johnson

neil.johnson

    Advanced Member

  • Gurus
  • 3,580 posts
  • LocationLiverpool, UK

Posted 16 September 2011 - 05:38 AM

First do this:

http://kb.mediatempl... to my (dv)?#dv

Now, in windows, open up putty. For the hostname put the server's IP address in, and select port 22. Click Open.
You should now get the login prompt.

For the username simply type: root
Press enter.

Enter the password that you setup for root by using the instructions in the link above.
Press enter.

Done.

To start, press any key. Where's the 'Any' key?


#17 webguync

webguync

    Advanced Member

  • Members
  • PipPipPip
  • 947 posts

Posted 16 September 2011 - 02:52 PM

I appreciate the response, bu you know what? I tried that and still get access denied. And yes, I did make sure that I have root access enabled.

#18 trq

trq

    Advanced Member

  • Administrators
  • 31,023 posts
  • LocationSydney, Australia.

Posted 16 September 2011 - 04:45 PM

You need to take this up with your host.

http://thorpesystems.com | http://proemframework.org | http://github.com/trq

SmtpCatcher - A very simple mock sendmail useful for testing PHP mail scripts.
OPM - My Linux package manager.


#19 webguync

webguync

    Advanced Member

  • Members
  • PipPipPip
  • 947 posts

Posted 19 September 2011 - 10:25 AM

ok, thanks for the responses.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Cheap Linux VPS from $5
SSD Storage, 30 day Guarantee
1 TB of BW, 100% Network Uptime

AlphaBit.com