webguync Posted September 7, 2011 Share Posted September 7, 2011 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? Quote Link to comment https://forums.phpfreaks.com/topic/246633-cannot-connect-to-server-via-putty-ssh/ Share on other sites More sharing options...
JonnoTheDev Posted September 7, 2011 Share Posted September 7, 2011 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 Quote Link to comment https://forums.phpfreaks.com/topic/246633-cannot-connect-to-server-via-putty-ssh/#findComment-1266464 Share on other sites More sharing options...
webguync Posted September 7, 2011 Author Share Posted September 7, 2011 sorry, I forgot to mention it is a dedicated server. Quote Link to comment https://forums.phpfreaks.com/topic/246633-cannot-connect-to-server-via-putty-ssh/#findComment-1266469 Share on other sites More sharing options...
premiso Posted September 7, 2011 Share Posted September 7, 2011 Perhaps you need a guide: http://webmaster.iu.edu/tool_guide_info/webserve_putty.shtml Quote Link to comment https://forums.phpfreaks.com/topic/246633-cannot-connect-to-server-via-putty-ssh/#findComment-1266523 Share on other sites More sharing options...
j.smith1981 Posted September 14, 2011 Share Posted September 14, 2011 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). Quote Link to comment https://forums.phpfreaks.com/topic/246633-cannot-connect-to-server-via-putty-ssh/#findComment-1269103 Share on other sites More sharing options...
trq Posted September 14, 2011 Share Posted September 14, 2011 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. Quote Link to comment https://forums.phpfreaks.com/topic/246633-cannot-connect-to-server-via-putty-ssh/#findComment-1269113 Share on other sites More sharing options...
j.smith1981 Posted September 14, 2011 Share Posted September 14, 2011 Ahh ok so it could possibly be the firewall on the actual server itself then? Quote Link to comment https://forums.phpfreaks.com/topic/246633-cannot-connect-to-server-via-putty-ssh/#findComment-1269114 Share on other sites More sharing options...
trq Posted September 14, 2011 Share Posted September 14, 2011 No, the op is getting a prompt, this means the connection was successful. Quote Link to comment https://forums.phpfreaks.com/topic/246633-cannot-connect-to-server-via-putty-ssh/#findComment-1269116 Share on other sites More sharing options...
webguync Posted September 14, 2011 Author Share Posted September 14, 2011 yea I do get the login prompt. I am using port 22. Can't get access still though. Quote Link to comment https://forums.phpfreaks.com/topic/246633-cannot-connect-to-server-via-putty-ssh/#findComment-1269182 Share on other sites More sharing options...
trq Posted September 14, 2011 Share Posted September 14, 2011 Describe exactly what it is your doing and what exactly is happening? Quote Link to comment https://forums.phpfreaks.com/topic/246633-cannot-connect-to-server-via-putty-ssh/#findComment-1269184 Share on other sites More sharing options...
webguync Posted September 14, 2011 Author Share Posted September 14, 2011 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. Quote Link to comment https://forums.phpfreaks.com/topic/246633-cannot-connect-to-server-via-putty-ssh/#findComment-1269201 Share on other sites More sharing options...
trq Posted September 14, 2011 Share Posted September 14, 2011 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. Quote Link to comment https://forums.phpfreaks.com/topic/246633-cannot-connect-to-server-via-putty-ssh/#findComment-1269210 Share on other sites More sharing options...
webguync Posted September 14, 2011 Author Share Posted September 14, 2011 I tried connecting using just the domain name when I get prompted the login and that doesn't grant me access either. Quote Link to comment https://forums.phpfreaks.com/topic/246633-cannot-connect-to-server-via-putty-ssh/#findComment-1269258 Share on other sites More sharing options...
j.smith1981 Posted September 14, 2011 Share Posted September 14, 2011 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. Quote Link to comment https://forums.phpfreaks.com/topic/246633-cannot-connect-to-server-via-putty-ssh/#findComment-1269264 Share on other sites More sharing options...
webguync Posted September 14, 2011 Author Share Posted September 14, 2011 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.mediatemple.net/questions/16/Connecting+via+SSH+to+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. Quote Link to comment https://forums.phpfreaks.com/topic/246633-cannot-connect-to-server-via-putty-ssh/#findComment-1269271 Share on other sites More sharing options...
JonnoTheDev Posted September 16, 2011 Share Posted September 16, 2011 First do this: http://kb.mediatemple.net/questions/625/How+do+I+enable+root+access+to+my+%28dv%29%3F#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. Quote Link to comment https://forums.phpfreaks.com/topic/246633-cannot-connect-to-server-via-putty-ssh/#findComment-1269849 Share on other sites More sharing options...
webguync Posted September 16, 2011 Author Share Posted September 16, 2011 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. Quote Link to comment https://forums.phpfreaks.com/topic/246633-cannot-connect-to-server-via-putty-ssh/#findComment-1270076 Share on other sites More sharing options...
trq Posted September 16, 2011 Share Posted September 16, 2011 You need to take this up with your host. Quote Link to comment https://forums.phpfreaks.com/topic/246633-cannot-connect-to-server-via-putty-ssh/#findComment-1270102 Share on other sites More sharing options...
webguync Posted September 19, 2011 Author Share Posted September 19, 2011 ok, thanks for the responses. Quote Link to comment https://forums.phpfreaks.com/topic/246633-cannot-connect-to-server-via-putty-ssh/#findComment-1270678 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.