LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 09-08-2011, 02:26 PM   #1
mlnm
Member
 
Registered: Jun 2011
Posts: 96

Rep: Reputation: Disabled
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 ......
 
Old 09-08-2011, 02:40 PM   #2
sag47
Senior Member
 
Registered: Sep 2009
Location: Orange County, CA
Distribution: Kubuntu x64, Raspbian, CentOS
Posts: 1,848
Blog Entries: 36

Rep: Reputation: 454Reputation: 454Reputation: 454Reputation: 454Reputation: 454
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?
 
Old 09-08-2011, 02:56 PM   #3
mlnm
Member
 
Registered: Jun 2011
Posts: 96

Original Poster
Rep: Reputation: Disabled
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).
 
Old 09-08-2011, 03:03 PM   #4
sag47
Senior Member
 
Registered: Sep 2009
Location: Orange County, CA
Distribution: Kubuntu x64, Raspbian, CentOS
Posts: 1,848
Blog Entries: 36

Rep: Reputation: 454Reputation: 454Reputation: 454Reputation: 454Reputation: 454
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.
 
Old 09-08-2011, 05:54 PM   #5
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,114

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
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.

Last edited by schneidz; 09-08-2011 at 06:34 PM.
 
Old 09-09-2011, 09:22 AM   #6
mlnm
Member
 
Registered: Jun 2011
Posts: 96

Original Poster
Rep: Reputation: Disabled
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 ........
 
  


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
Putty not connecting ramdongre Linux - Networking 8 08-24-2011 11:51 AM
Connecting Linux box using putty. prasannarajayya Linux - General 4 07-17-2011 08:12 AM
[SOLVED] Connecting to debian server with putty konzo Linux - Server 2 07-22-2010 05:24 AM
PuTTy not connecting to RH 2.4.21-ELsmp bangulu Linux - Newbie 2 05-10-2007 03:39 AM
Using putty on windows connecting to Linux newlinfan Linux - Software 3 09-28-2005 08:19 AM


All times are GMT -5. The time now is 02:50 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