LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   connecting to linux server with putty (https://www.linuxquestions.org/questions/linux-newbie-8/connecting-to-linux-server-with-putty-902006/)

mlnm 09-08-2011 02:26 PM

connecting to linux server with putty
 
Dear friends, im trying to connect from putty(ssh)to my linux server which has a public ip.
previously we had a router in linux server's location,i used to port forward ssh in router and it had local ip(private ip).
Later configured public ip for linux server there.
Now i am not able to connect through ssh to remote router bcoz server has public ip.
I tried to connect directly to linux server from putty but not successful.
Please help me ......

sag47 09-08-2011 02:40 PM

Do you have physical access to the machine? It sounds like a firewall issue to me. Either that or sshd is turned off. Please provide more information. What distro and version are you using? Can you nmap the machine to see what ports are open?

mlnm 09-08-2011 02:56 PM

There is no direct physical connection with linux server , router was the only way i could connect till its changed to public ip.Now how can i establish connection between linux server and my putty(ssh).

sag47 09-08-2011 03:03 PM

I'm not talking about a direct physical connection. I'm saying can you walk up to the machine and log into it without an ssh connection? You still need to provide more information about the system. Help me help you.

schneidz 09-08-2011 05:54 PM

i cant ascertain from your description whether you punched a hole in your router to allow traffic thru port 22 ?

lets start from the inside out.
in the first terminal run this:
sudo /etc/init.d/ssh stop
sudo sshd -d -d -d
# open another terminal window and type:
ssh -v -v -v localhost

copy and paste the output into your next post.


once that is working the next step would be to run:
ssh -v -v -v <internal-ip-address-of-server>
on another machine connected to the same router.

the step after that would be to run:
ssh -v -v -v <ip-address-of-router>
from far away.

mlnm 09-09-2011 09:22 AM

linux server's in u.s and i am connecting to it through putty from india.
just after posting yesterday i did an idiotic thing by giving public to linux server from putty, and it disconnected bcoz its gateway is different from my u.s router's ip.But ofcourse i called up my colleague in u.s and told him to revert back ,its in the process.
so now i am not able to connect to server using putty but as soon as i connect to it i will post u the details.
Thank u for responding ........


All times are GMT -5. The time now is 10:26 PM.