Toon posts:

ssh nog steeds niet mogelijk

Pagina: 1
Acties:
  • 264 views sinds 30-01-2008
  • Reageer

Verwijderd

Topicstarter
na veel te hebben gelezen en geprobeerd lukt het mij wel om te telnetten via 127.0.0.1 maar ssh upgegrade naar openssh 3.4 dat wil maar niet lukken pingen van een andere machine in mijn netwerk gaat wel maar ook van deze computer geen ssh ik heb een log waar jullie misschien wat mee kunnen.

OpenSSH_3.4p1, SSH protocols 1.5/2.0, OpenSSL 0x0090603f
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: /etc/ssh/ssh_config line 44: Deprecated option "UseRsh"
debug1: /etc/ssh/ssh_config line 45: Deprecated option "FallBackToRsh"
debug1: Rhosts Authentication disabled, originating port will not be trusted.
debug1: ssh_connect: needpriv 0
debug1: Connecting to master.tux.net [127.0.0.1] port 22.
ssh: connect to address 127.0.0.1 port 22: Connection refused


ook lukt het niet met het ip adress wat mij permanent wordt toegekent

ja ssh staat aan
[root@master root]# ps aux | grep sshd
root 1386 0.0 0.5 2768 1280 ? S 20:52 0:00 /usr/sbin/sshd
root 3120 0.0 0.3 1944 764 pts/1 S 21:45 0:00 grep sshd

inted ook
[root@master root]# ps aux | grep inetd
root 1425 0.0 0.5 2332 1128 ? S 20:52 0:00 xinetd -stayaliveroot 3133 0.0 0.3 1944 764 pts/1 S 21:46 0:00 grep inetd


hieronder nog wat nuttige informatie
route -n
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
212.92.64.0 0.0.0.0 255.255.224.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 212.92.95.254 0.0.0.0 UG 0 0 0 eth0


[root@master root]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:10:5A:5B:C1:68
inet addr:212.xxx.xxx.xxx Bcast:212.92.95.255 Mask:255.255.224.0
UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
RX packets:49267 errors:0 dropped:0 overruns:0 frame:0
TX packets:5738 errors:0 dropped:0 overruns:0 carrier:0
collisions:5 txqueuelen:100
RX bytes:7306888 (6.9 Mb) TX bytes:891825 (870.9 Kb)
Interrupt:11 Base address:0xc400

eth1 Link encap:Ethernet HWaddr 00:10:5A:5B:C1:60
inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1056 errors:0 dropped:0 overruns:0 frame:0
TX packets:1065 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:147114 (143.6 Kb) TX bytes:640566 (625.5 Kb)
Interrupt:10 Base address:0xc800

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:326 errors:0 dropped:0 overruns:0 frame:0
TX packets:326 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:22788 (22.2 Kb) TX bytes:22788 (22.2 Kb)

ik weet het echt niet meer wie wel alvast bedankt:'(

  • veldmuis
  • Registratie: Mei 2001
  • Niet online
in /etc/ssh/sshd_config wel poortje 22 toegewezen :? :)

sshd wel gestart :? :)

  • active2
  • Registratie: Juni 2001
  • Laatst online: 17-07 21:56

active2

Google is your friend

En kijk de configuratie opties even na want daar gaat op regel 44 en 45 iets fout. Net of de syntax daar niet goed is.

En natuurlijk:
code:
1
/etc/init.d/ssh restart

Google, Het mirakel van de 21e eeuw!!!!


  • Tachyon
  • Registratie: Januari 2000
  • Laatst online: 13-08 21:24

Tachyon

pop the glock

na veel te hebben gelezen en geprobeerd lukt het mij wel om te telnetten via 127.0.0.1
Telnetten naar je eigen machine? (127.0.0.1 = localhost)
Of wat bedoel je hier eigenlijk mee?

If we do not change our direction, we will likely end up where we are heading.


Verwijderd

na veel te hebben gelezen en geprobeerd lukt het mij wel om te telnetten via 127.0.0.1
Telnetten naar je eigen machine? (127.0.0.1 = localhost)
Of wat bedoel je hier eigenlijk mee?
Volgens mij is hier al eerder een topic over geweest...


En met 127.0.0.1 probeert ie zijn eigen machine te telnetten.

  • Mark
  • Registratie: Juni 1999
  • Laatst online: 08-08 09:24
Vanaf console op de linux machine:
code:
1
telnet 0 22

Vanaf een andere machine:
code:
1
telnet 192.168.0.1 22

Post van beide eens de output.

Post ook eens de inhoud van sshd_config, hosts.allow en hosts.deny

Verwijderd

1) ik mis de "netstat -an|grep LISTEN".
2) evt firewall logs

Verwijderd

Topicstarter
nogmaals ssh is wel gestart en hier de gevraagde log

[root@master root]# telnet 0 22
Trying 0.0.0.0...
telnet: Unable to connect to remote host: Connection refused


[root@master root]# telnet 192.168.0.1 22
Trying 192.168.0.1...
telnet: Unable to connect to remote host: Connection refused

tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN
tcp 0 0 192.168.0.1:53 0.0.0.0:* LISTEN
tcp 0 0 212.xx.xx.xxx:53 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN
tcp 0 0 212.xx.xx.xxx:22 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:23 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN
unix 2 [ ACC ] STREAM LISTENING 4106 /tmp/.ICE-unix/dcop2301-1026886001
unix 2 [ ACC ] STREAM LISTENING 3991 /tmp/.X11-unix/X0
unix 2 [ ACC ] STREAM LISTENING 11916 /tmp/medusa-idled-service
unix 2 [ ACC ] STREAM LISTENING 3294 /dev/gpmctl
unix 2 [ ACC ] STREAM LISTENING 3210 /var/prelude/socket
unix 2 [ ACC ] STREAM LISTENING 4097 /tmp/ksocket-root/kdeinit-:0
unix 2 [ ACC ] STREAM LISTENING 4138 /tmp/ksocket-root/klauncherAM4NLb.slave-socket
unix 2 [ ACC ] STREAM LISTENING 4253 /tmp/.ICE-unix/2327
unix 2 [ ACC ] STREAM LISTENING 3525 /tmp/.font-unix/fs-1
unix 2 [ ACC ] STREAM LISTENING 4221 /tmp/mcop-root/master_tux_net-0914-3d35097b


maar voor mij gaat het voornamelijk dat ik vanaf mijn werk in kan loggen met ssh of telnet ook al is telnet niet veilig maar ssh is het belangerijkst dus wel op mijn machine van thuis

dus werk inloggen machine thuis met ssh ik kom er niet uit

alvast bedankt

Verwijderd

Op woensdag 17 juli 2002 08:22 schreef TheTux het volgende:
nogmaals ssh is wel gestart en hier de gevraagde log

[root@master root]# telnet 0 22
Trying 0.0.0.0...
telnet: Unable to connect to remote host: Connection refused


[root@master root]# telnet 192.168.0.1 22
Trying 192.168.0.1...
telnet: Unable to connect to remote host: Connection refused

tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN
tcp 0 0 192.168.0.1:53 0.0.0.0:* LISTEN
tcp 0 0 212.xx.xx.xxx:53 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN
tcp 0 0 212.xx.xx.xxx:22 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:23 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN
unix 2 [ ACC ] STREAM LISTENING 4106 /tmp/.ICE-unix/dcop2301-1026886001
unix 2 [ ACC ] STREAM LISTENING 3991 /tmp/.X11-unix/X0
unix 2 [ ACC ] STREAM LISTENING 11916 /tmp/medusa-idled-service
unix 2 [ ACC ] STREAM LISTENING 3294 /dev/gpmctl
unix 2 [ ACC ] STREAM LISTENING 3210 /var/prelude/socket
unix 2 [ ACC ] STREAM LISTENING 4097 /tmp/ksocket-root/kdeinit-:0
unix 2 [ ACC ] STREAM LISTENING 4138 /tmp/ksocket-root/klauncherAM4NLb.slave-socket
unix 2 [ ACC ] STREAM LISTENING 4253 /tmp/.ICE-unix/2327
unix 2 [ ACC ] STREAM LISTENING 3525 /tmp/.font-unix/fs-1
unix 2 [ ACC ] STREAM LISTENING 4221 /tmp/mcop-root/master_tux_net-0914-3d35097b


maar voor mij gaat het voornamelijk dat ik vanaf mijn werk in kan loggen met ssh of telnet ook al is telnet niet veilig maar ssh is het belangerijkst dus wel op mijn machine van thuis

dus werk inloggen machine thuis met ssh ik kom er niet uit

alvast bedankt
post je config file eens.

/edit:
> 212.xx.xx.xxx:22
Lijkt alsof ie alleen op je externe ip draait. Probeer eens te ssh'en naar dat IP.

  • infirit
  • Registratie: November 2001
  • Laatst online: 19-12-2022
Je moet natuurlijk wel ssh ipv telnet gebruiken |:(
Dus ssh 192.168.0.0 of 127.0.0.1 !

Verwijderd

Op woensdag 17 juli 2002 13:47 schreef infirit het volgende:
Je moet natuurlijk wel ssh ipv telnet gebruiken |:(
Dus ssh 192.168.0.0 of 127.0.0.1 !
even voor jou dan : als je telnet naar je ssh poort moet je ssh daemon je ook gewoon toelaten, dwz, je krijgt geen login melding, maar wel de SSH versie te zien e.d. Uiteraard alleen als de daemon goed draait :)

Verwijderd

Topicstarter
hier mijn config ssh

# Host 0.0.0.0
# ForwardAgent no
# ForwardX11 yes
# RhostsAuthentication no
# RhostsRSAAuthentication no
# RSAAuthentication no
# PasswordAuthentication no
# FallBackToRsh no
# UseRsh no
# BatchMode no
# CheckHostIP no
# StrictHostKeyChecking ask
# IdentityFile ~/.ssh/identity
# IdentityFile ~/.ssh/id_rsa
# IdentityFile ~/.ssh/id_dsa
# Port 22
# Protocol 2,1
# Cipher 3des
# Ciphers aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-cbc
# EscapeChar ~

Host *
CheckHostIP no
StrictHostKeyChecking no
ForwardX11 no
ForwardAgent no
UseRsh no
FallBackToRsh no
UsePrivilegedPort no
CompressionLevel 4
EscapeChar none
Compression yes
Port 22
BatchMode yes
KeepAlive no

en die kruis wat betreft mijn ip adres is geen echt ip adres maar die zet je toch niet op het forum.

hier kijk zelf ingelogd met telnet via 127.0.0.1 of 192.168.0.1 maar niet met het ip adres van mijn provider

[root@master root]# telnet 127.0.0.1
Trying 127.0.0.1...
Connected to localhost (127.0.0.1).
Escape character is '^]'.
telnetd: unknown authorization level for -a
Telnet Server
login: bo
Password:
Last login: Wed Jul 17 20:49:28 from localhost
Welkom by Mandrake 8.2
MASTER.TUX.NET
bash: TMOUT: readonly variable
[bo@master bo]$

[root@master root]# telnet 192.168.0.1
Trying 192.168.0.1...
Connected to mstrb.tux.net (192.168.0.1).
Escape character is '^]'.
telnetd: unknown authorization level for -a
Telnet Server
login: bo
Password:
Last login: Wed Jul 17 20:50:34 from localhost
Welkom by Mandrake 8.2
MASTER.TUX.NET
bash: TMOUT: readonly variable
[bo@master bo]$

een ssh vergeet het maar

Connection closed by foreign host.
[root@master root]# ssh 0.0.0.0
ssh: connect to address 0.0.0.0 port 22: Connection refused
[root@master root]# ssh localhost
ssh: connect to address 127.0.0.1 port 22: Connection refused
[root@master root]# ssh 127.0.0.1
ssh: connect to address 127.0.0.1 port 22: Connection refused
[root@master root]# ssh192.168.0.1
[root@master root]# ssh 192.168.0.1
ssh: connect to address 192.168.0.1 port 22: Connection refused
[root@master root]# ssh master.tux.net
ssh: connect to address 127.0.0.1 port 22: Connection refused

dus wat moeten we hier mee wie is hier 1 van de wiskids

alvast bedankt

  • igmar
  • Registratie: April 2000
  • Laatst online: 29-06 18:56

igmar

ISO20022

Op woensdag 17 juli 2002 20:57 schreef TheTux het volgende:
hier mijn config ssh


Host *
Port 22
Host 0.0.0.0

Port kun je weglaten.

Verwijderd

Op woensdag 17 juli 2002 20:57 schreef TheTux het volgende:
hier mijn config ssh

# Host 0.0.0.0
# ForwardAgent no
# ForwardX11 yes
# RhostsAuthentication no
# RhostsRSAAuthentication no
# RSAAuthentication no
# PasswordAuthentication no
# FallBackToRsh no
# UseRsh no
# BatchMode no
# CheckHostIP no
# StrictHostKeyChecking ask
# IdentityFile ~/.ssh/identity
# IdentityFile ~/.ssh/id_rsa
# IdentityFile ~/.ssh/id_dsa
# Port 22
# Protocol 2,1
# Cipher 3des
# Ciphers aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-cbc
# EscapeChar ~

Host *
CheckHostIP no
StrictHostKeyChecking no
ForwardX11 no
ForwardAgent no
UseRsh no
FallBackToRsh no
UsePrivilegedPort no
CompressionLevel 4
EscapeChar none
Compression yes
Port 22
BatchMode yes
KeepAlive no

en die kruis wat betreft mijn ip adres is geen echt ip adres maar die zet je toch niet op het forum.

hier kijk zelf ingelogd met telnet via 127.0.0.1 of 192.168.0.1 maar niet met het ip adres van mijn provider

[root@master root]# telnet 127.0.0.1
Trying 127.0.0.1...
Connected to localhost (127.0.0.1).
Escape character is '^]'.
telnetd: unknown authorization level for -a
Telnet Server
login: bo
Password:
Last login: Wed Jul 17 20:49:28 from localhost
Welkom by Mandrake 8.2
MASTER.TUX.NET
bash: TMOUT: readonly variable
[bo@master bo]$

[root@master root]# telnet 192.168.0.1
Trying 192.168.0.1...
Connected to mstrb.tux.net (192.168.0.1).
Escape character is '^]'.
telnetd: unknown authorization level for -a
Telnet Server
login: bo
Password:
Last login: Wed Jul 17 20:50:34 from localhost
Welkom by Mandrake 8.2
MASTER.TUX.NET
bash: TMOUT: readonly variable
[bo@master bo]$

een ssh vergeet het maar

Connection closed by foreign host.
[root@master root]# ssh 0.0.0.0
ssh: connect to address 0.0.0.0 port 22: Connection refused
[root@master root]# ssh localhost
ssh: connect to address 127.0.0.1 port 22: Connection refused
[root@master root]# ssh 127.0.0.1
ssh: connect to address 127.0.0.1 port 22: Connection refused
[root@master root]# ssh192.168.0.1
[root@master root]# ssh 192.168.0.1
ssh: connect to address 192.168.0.1 port 22: Connection refused
[root@master root]# ssh master.tux.net
ssh: connect to address 127.0.0.1 port 22: Connection refused

dus wat moeten we hier mee wie is hier 1 van de wiskids

alvast bedankt
probeer nu eens te ssh'en naar je externe IP. En haal in je config file eens die host & port weg, commenten dus.

Verwijderd

Topicstarter
alles gedaan wat als laats gepost was maar helaas het werkt nog steeds niet.??????????

[root@master root]# ssh 212.92.78.XXX
Permission denied (publickey,keyboard-interactive).

of [root@master root]# ssh 192.168.0.1
ssh: connect to address 192.168.0.1 port 22: Connection refused

wat nu...

:(

Verwijderd

Op donderdag 18 juli 2002 08:35 schreef TheTux het volgende:
alles gedaan wat als laats gepost was maar helaas het werkt nog steeds niet.??????????

[root@master root]# ssh 212.92.78.XXX
Permission denied (publickey,keyboard-interactive).

of [root@master root]# ssh 192.168.0.1
ssh: connect to address 192.168.0.1 port 22: Connection refused

wat nu...

:(
je ziet dus dat je daemon wel draait, maar niet luistert naar de interne IP. Op je externe IP krijg je een foutmelding, geen connection refused. Had je in je config die host en port al gecomment? Ik heb ook openssh 3.4p1 draaien, mn sshd_config hieronder, neem deze eens over:
code:
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
#    $OpenBSD: sshd_config,v 1.56 2002/06/20 23:37:12 markus Exp $

# This is the sshd server system-wide configuration file.  See
# sshd_config(5) for more information.

# This sshd was compiled with PATH=/usr/bin:/bin:/usr/sbin:/sbin:/opt/openssh-3.4p1/bin

# The strategy used for options in the default sshd_config shipped with
# OpenSSH is to specify options with their default value where
# possible, but leave them commented.  Uncommented options change a
# default value.

Port 2200
#Protocol 2,1
#ListenAddress 0.0.0.0
#ListenAddress ::

# HostKey for protocol version 1
#HostKey /opt/openssh-3.4p1/etc/ssh_host_key
# HostKeys for protocol version 2
#HostKey /opt/openssh-3.4p1/etc/ssh_host_rsa_key
#HostKey /opt/openssh-3.4p1/etc/ssh_host_dsa_key

# Lifetime and size of ephemeral version 1 server key
#KeyRegenerationInterval 3600
#ServerKeyBits 768

# Logging
#obsoletes QuietMode and FascistLogging
#SyslogFacility AUTH
#LogLevel INFO

# Authentication:

#LoginGraceTime 600
PermitRootLogin no
#StrictModes yes

#RSAAuthentication yes
#PubkeyAuthentication yes
#AuthorizedKeysFile     .ssh/authorized_keys

# rhosts authentication should not be used
#RhostsAuthentication no
# Don't read the user's ~/.rhosts and ~/.shosts files
#IgnoreRhosts yes
# For this to work you will also need host keys in /opt/openssh-3.4p1/etc/ssh_known_hosts
#RhostsRSAAuthentication no
# similar for protocol version 2
#HostbasedAuthentication no
# Change to yes if you don't trust ~/.ssh/known_hosts for
# RhostsRSAAuthentication and HostbasedAuthentication
#IgnoreUserKnownHosts no

# To disable tunneled clear text passwords, change to no here!
#PasswordAuthentication yes
#PermitEmptyPasswords no

# Change to no to disable s/key passwords
#ChallengeResponseAuthentication yes

# Kerberos options
#KerberosAuthentication no
#KerberosOrLocalPasswd yes
#KerberosTicketCleanup yes

#AFSTokenPassing no

# Kerberos TGT Passing only works with the AFS kaserver
#KerberosTgtPassing no

# Set this to 'yes' to enable PAM keyboard-interactive authentication
# Warning: enabling this may bypass the setting of 'PasswordAuthentication'
#PAMAuthenticationViaKbdInt yes

#X11Forwarding no
#X11DisplayOffset 10
#X11UseLocalhost yes
#PrintMotd yes
#PrintLastLog yes
#KeepAlive yes
#UseLogin no
#UsePrivilegeSeparation yes
#Compression yes

#MaxStartups 10
# no default banner path
#Banner /some/path
#VerifyReverseMapping no

# override default of no subsystems
Subsystem    sftp    /opt/openssh-3.4p1/libexec/sftp-server

Wel even deze aanpassen:
/opt/openssh-3.4p1/etc/ssh_known_hosts
/opt/openssh-3.4p1/libexec/sftp-server
Pagina: 1