LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 11-12-2003, 03:52 PM   #1
leroy27336
Member
 
Registered: Nov 2003
Distribution: LTS Ubuntu 6.06
Posts: 127

Rep: Reputation: 15
SSH configuration...someone please help


could someone explain step by step on how to configure ssh running Red Hat 9, so i can log on to my linux workstation from a windows xp machine. i'm running absolute telnet as my windows xp program. on my linux labtop i see that the ssh deamon is running but whenever i try to connect to it i get a connection refused error. i'm sure i have to change something either in the sshd_config file or something in the host file. basically i want to make my linux machine the host, and my windows machine the client. please help.
 
Old 11-12-2003, 03:59 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 65
Do you have any firewall rules:
iptables -L
 
Old 11-12-2003, 04:04 PM   #3
leroy27336
Member
 
Registered: Nov 2003
Distribution: LTS Ubuntu 6.06
Posts: 127

Original Poster
Rep: Reputation: 15
whenever i type that command i simply get command not found. also now when i try to connect to my linux machine i get:

connect failed: Winsock error: Connection Reset
 
Old 11-12-2003, 04:26 PM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 65
You will need to be root - try:
/sbin/iptables -L
 
Old 11-12-2003, 04:29 PM   #5
leroy27336
Member
 
Registered: Nov 2003
Distribution: LTS Ubuntu 6.06
Posts: 127

Original Poster
Rep: Reputation: 15
ok...that worked...is there a certain one that i'm checking for.....
 
Old 11-12-2003, 04:33 PM   #6
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 65
One that is blocking port 22. If you are unsure then just post the output - preferably in BB code blocks
 
Old 11-12-2003, 04:46 PM   #7
leroy27336
Member
 
Registered: Nov 2003
Distribution: LTS Ubuntu 6.06
Posts: 127

Original Poster
Rep: Reputation: 15
here it is:

Chain OUTPUT (policy ACCEPT)
target prot opt source
ACCEPT udp -- 10.1.220.2 anywhere udp spt:domain dpts:
1025:65535
ACCEPT tcp -- anywhere anywhere tcp dpt:http flags:S
YN,RST,ACK/SYN
ACCEPT udp -- anywhere anywhere udp spts:bootps:boot
pc dpts:bootps:bootpc
ACCEPT all anywhere anywhere
REJECT tcp -- anywhere anywhere tcp dpts:0:1023 flag
s:SYN,RST,ACK/SYN reject-with icmp-port-unreachable
REJECT tcp -- anywhere anywhere tcp dpt:nfs flags:SY
N,RST,ACK/SYN reject - with icmp-port - unreachable
REJECT udp -- anywhere anywhere udp dpts:0:1023 reje
ct-with icmp-port-unreachable
REJECT udp -- anywhere anywhere udp dpt:nfs reject-w
ith icmp-port-unreachable
REJECT tcp -- anywhere anywhere tcp dpts:x11:6009 fl
ags:SYN,RST,ACK/SYN reject-with icmp-port-unreachable
REJECT tcp -- anywhere anywhere tcp dpt:xfs flags:SY
N,RST,ACK/SYN reject-with icmp-port-unreachable
 
Old 11-12-2003, 04:51 PM   #8
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 65
Ok that looks a bit odd -what baout the INPUT chain? Try this:
iptables-save
iptables -P INPUT ACCEPT
iptables -F
 
Old 11-12-2003, 04:57 PM   #9
leroy27336
Member
 
Registered: Nov 2003
Distribution: LTS Ubuntu 6.06
Posts: 127

Original Poster
Rep: Reputation: 15
Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

Chain RH-Lokkit-0-50-INPUT (0 reference)
target prot opt source destination
 
Old 11-12-2003, 05:06 PM   #10
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 65
Now when you try to connect what do you get?
 
Old 11-12-2003, 05:12 PM   #11
leroy27336
Member
 
Registered: Nov 2003
Distribution: LTS Ubuntu 6.06
Posts: 127

Original Poster
Rep: Reputation: 15
connect failed: Winsock error: Connection Reset
 
Old 11-12-2003, 05:15 PM   #12
leroy27336
Member
 
Registered: Nov 2003
Distribution: LTS Ubuntu 6.06
Posts: 127

Original Poster
Rep: Reputation: 15
remember i'm trying to make my linux machine the host and my windows machine the client
 
Old 11-12-2003, 05:23 PM   #13
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 65
What happens when you try to ssh to the linux system from itself. ie on a linux console run:
ssh USER@127.0.0.1
 
Old 11-12-2003, 05:31 PM   #14
leroy27336
Member
 
Registered: Nov 2003
Distribution: LTS Ubuntu 6.06
Posts: 127

Original Poster
Rep: Reputation: 15
says connection to host " " refused
 
Old 11-12-2003, 05:35 PM   #15
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 65
mmm - is the service listening - post the output of:
netstat -nlp
 
  


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
SSH Configuration wildcat22 Linux - Networking 1 09-27-2005 09:47 AM
Slackware 10.1 + SSH Configuration Robert154 Linux - Networking 4 08-26-2005 11:01 PM
SSH Configuration xedios Linux - Software 2 10-25-2004 04:02 PM
ssh configuration questions vidarz Debian 2 06-08-2004 11:06 AM
SSH configuration help dt23 Mandriva 16 04-07-2004 04:29 PM


All times are GMT -5. The time now is 09:01 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration