Unix Technical Forum

SEO

vBulletin Search Engine Optimization


Go Back   Unix Technical Forum > Unix Operating Systems > SUSE Linux

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-07-2008, 10:14 AM
mike-yue
 
Posts: n/a
Default What is the correct procedure to config sshd service?

My suse is Opensuse10.0
My client box is Windows server 2003, the ssh tunnel is putty.

from the windows side, the suse is ping-able, but ssh connection can't
be estabilished. The putty gave message "Network error: Connection
timed out".

from the suse side, the windows is NOT ping-able. I tried ssh from
suse to itself, both root and other users work fine.

The suse network adapter works fine, I can access internet with
firefox without any problem.
The windows network is working without problem.

Can someone give me some hits?

(I've set the PasswordAuthentication to yes in /etc/ssh/sshd_config;
The Protocol set to 2.)

Thanks a lot
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 05-07-2008, 10:14 AM
whitemice
 
Posts: n/a
Default Re: What is the correct procedure to config sshd service?

On May 6, 6:44 am, mike-yue <needpass...@gmail.com> wrote:
> My suse is Opensuse10.0
> My client box is Windows server 2003, the ssh tunnel is putty.
> from the windows side, the suse is ping-able, but ssh connection can't
> be estabilished. The putty gave message "Network error: Connection
> timed out".
> from the suse side, the windows is NOT ping-able. I tried ssh from
> suse to itself, both root and other users work fine.
> The suse network adapter works fine, I can access internet with
> firefox without any problem.
> The windows network is working without problem.
> Can someone give me some hits?
> (I've set the PasswordAuthentication to yes in /etc/ssh/sshd_config;
> The Protocol set to 2.)


Open the SSH port on the firewall of your SuSE box; and make sure the
service is enabled (chkconfig sshd on; service sshd start)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 05-07-2008, 10:14 AM
houghi
 
Posts: n/a
Default Re: What is the correct procedure to config sshd service?

mike-yue wrote:
> My suse is Opensuse10.0
> My client box is Windows server 2003, the ssh tunnel is putty.
>
> from the windows side, the suse is ping-able, but ssh connection can't
> be estabilished. The putty gave message "Network error: Connection
> timed out".


Most likely your firewall that has a closed ssh. It is closed by
default. Do a `telnet ssh.example.com 22` to see if that works. If not,
it will be your firewall or something else network related.

houghi
--
Listen do you hear them drawing near in their search for the sinners?
Feeding on the power of our fear and the evil within us.
Incarnation of Satan's creation of all that we dread.
When the demons arrive those alive would be better off dead!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 05-07-2008, 10:14 AM
mike-yue
 
Posts: n/a
Default Re: What is the correct procedure to config sshd service?

On 5月6日, 上午4时00分, whitemice <adamtaunowilli...@gmail.com> wrote:
> On May 6, 6:44 am, mike-yue <needpass...@gmail.com> wrote:
>
> > My suse is Opensuse10.0
> > My client box is Windows server 2003, the ssh tunnel is putty.
> > from the windows side, the suse is ping-able, but ssh connection can't
> > be estabilished. The putty gave message "Network error: Connection
> > timed out".
> > from the suse side, the windows is NOT ping-able. I tried ssh from
> > suse to itself, both root and other users work fine.
> > The suse network adapter works fine, I can access internet with
> > firefox without any problem.
> > The windows network is working without problem.
> > Can someone give me some hits?
> > (I've set the PasswordAuthentication to yes in /etc/ssh/sshd_config;
> > The Protocol set to 2.)

>
> Open the SSH port on the firewall of your SuSE box; and make sure the
> service is enabled (chkconfig sshd on; service sshd start)


port 22 is opened, and sshd is running.
from suse side, ssh root@127.0.0.1 is working fine; ssh
mike@192.168.0.3 also works. so it is neither an issue of the port,
nor the sshd daemon.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 05-07-2008, 10:14 AM
mike-yue
 
Posts: n/a
Default Re: What is the correct procedure to config sshd service?

On 5月6日, 上午4时09分, houghi <hou...@houghi.org.invalid> wrote:
> mike-yue wrote:
> > My suse is Opensuse10.0
> > My client box is Windows server 2003, the ssh tunnel is putty.

>
> > from the windows side, the suse is ping-able, but ssh connection can't
> > be estabilished. The putty gave message "Network error: Connection
> > timed out".

>
> Most likely your firewall that has a closed ssh. It is closed by
> default. Do a `telnet ssh.example.com 22` to see if that works. If not,
> it will be your firewall or something else network related.
>
> houghi
> --
> Listen do you hear them drawing near in their search for the sinners?
> Feeding on the power of our fear and the evil within us.
> Incarnation of Satan's creation of all that we dread.
> When the demons arrive those alive would be better off dead!


"telnet 127.0.0.1 22 "works fine.
Are there any other settings?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 05-07-2008, 10:14 AM
houghi
 
Posts: n/a
Default Re: What is the correct procedure to config sshd service?

mike-yue wrote:
> "telnet 127.0.0.1 22 "works fine.
> Are there any other settings?


Not that I ever needed to set. Does it work from there to another
machine in another network or from somewhwere else to there?

The only other thing I can think of is there might be routing issues.

houghi
--
>>>> Run the following from the bashprompt if you have the kernel sources

for I in `find /usr/src/linux/ -name *.c`; \
do A=`grep -i -A 1 -B 1 fuck $I`;if [ "$A" != "" ]; \
then printf "$I \n$A \n\n"; fi ;done|less
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 05-07-2008, 10:14 AM
mike-yue
 
Posts: n/a
Default Re: What is the correct procedure to config sshd service?

On 5月6日, 下午11时59分, houghi <hou...@houghi.org.invalid> wrote:
> mike-yue wrote:
> > "telnet 127.0.0.1 22 "works fine.
> > Are there any other settings?

>
> Not that I ever needed to set. Does it work from there to another
> machine in another network or from somewhwere else to there?
>
> The only other thing I can think of is there might be routing issues.
>
> houghi
> -->>>> Run the following from the bashprompt if you have the kernel sources
>
> for I in `find /usr/src/linux/ -name *.c`; \
> do A=`grep -i -A 1 -B 1 fuck $I`;if [ "$A" != "" ]; \
> then printf "$I \n$A \n\n"; fi ;done|less


Two laptops connect to one netgear router wirelessly.
I just checked the router settings, but don't see any special setting
there.
All services are permitted, no site is blocked. No port forwarding
settings.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 05-07-2008, 10:14 AM
mike-yue
 
Posts: n/a
Default Re: What is the correct procedure to config sshd service?

I just solved the issue.
The solutions is: modify /etc/sysconfig/SuSEfirewall2 as the /usr/
share/doc/packages/SuSEfirewall2/EXAMPLES sample 2. Small home
network.
The sample settings are:
FW_DEV_EXT="dsl0"
FW_DEV_INT="eth0"
FW_ROUTE="yes"
FW_MASQUERADE="yes"
FW_MASQ_NETS="192.168.10.0/24"

after I reboot the suse(should I restart sth instead of reboot?) the
ssh works good from windows side.
I know it is a little risk, but, I just want the ssh connection
working for a couple of hours, then I will change all settings back.

Thank you guys for your time.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 05-07-2008, 10:14 AM
houghi
 
Posts: n/a
Default Re: What is the correct procedure to config sshd service?

mike-yue wrote:
> I just solved the issue.
> The solutions is: modify /etc/sysconfig/SuSEfirewall2 as the /usr/

<snip>

So it was the firewall after all. I just open that during the
instalation or in YaST later on to allow ssh or anything else to pass.

houghi
--
>>>> Run the following from the bashprompt if you have the kernel sources

for I in `find /usr/src/linux/ -name *.c`; \
do A=`grep -i -A 1 -B 1 fuck $I`;if [ "$A" != "" ]; \
then printf "$I \n$A \n\n"; fi ;done|less
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 05-07-2008, 06:19 PM
Gary Gapinski
 
Posts: n/a
Default Re: What is the correct procedure to config sshd service?

mike-yue wrote:
> (should I restart sth instead of reboot?)


No need to reboot - just execute "rcSuSEfirewall2 restart".
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 01:14 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62