cianura
3rd April 2005, 12:26
QUOTE(Flaber @ Apr 3 2005, 11:25)

Salutare.. iarasi
- Am si eu nevoie de o arhiva ceva pentru ... deshis port SSH 22 ... dar va rog eu

nu Root Kit`uri etc.. ca dejaba va mai chinuiti sa mi le dati.. ca le am cu as a cvea

..
root-kituri... yeah, rrrright.....
QUOTE(Flaber @ Apr 3 2005, 11:25)
- Sau Poate mai bine exista niste comenzi de deschis acest port... !
/etc/ssh/sshd_config fisierul de configurare;
ca root, dai
/etc/init.d/sshd start sau
/etc/rc.d/rc.sshd start
In functie de cum e organizata distributia ta.
In sub-directoarele init.d sau rc.d din directorul /etc se afla scripturile de pornire/oprire de servicii. Citeste in acele fisiere ca sa vezi ce si cum se da drumul la un server.
PS: termina te rog cu aberatiile astea gramaticale gen folosesk/multumesk pt ca nu sintem pe mirc aici.
Flaber
3rd April 2005, 12:54
Am intrat in : /etc/init.d/ si nu exista nici un "sshd"
si nici in /etc/rc.d/ 
-in cd /etc/init.d/ estia numai as acvea :
. diald network-status skeleton
.. dns-clean networking slpd
README dosplashFX networking.dpkg-old startreboot.sh
acpid exim nfs-common startshutdown.sh
apache halt nfs-user-server stop-bootlogd
apmd hostname.sh nviboot sysklogd
atd hwclock.sh pcmcia tpconfig
aumix hwclockfirst.sh portmap umountfs
bootlogd ifupdown ppp umountnfs.sh
bootmisc.sh inetd pppd-dns unsplashFX
checkfs.sh iptables procps.sh urandom
checkroot.sh isapnp proftpd woddity
checkroot.sh.dpkg-old kdm rc xandros-autofs
console-screen.sh kdm-nd rcS xandros-detection
cron keymap.sh reboot xandros-hotplug
cupsys klogd rmnologin xandros-loopback
deepsix.sh makedev safemode_kdm xfree86-common
devfsd modutils samba
devpts.sh mountall.sh sendsigs
dhcp-client mountnfs.sh single
-si in /etc/rc.d/ estista numai: . .. rc.pcmcia 
poate mai pot intr`un fel... 10x
cianura
3rd April 2005, 13:36
QUOTE(Flaber @ Apr 3 2005, 12:54)
Am intrat in : /etc/init.d/ si nu exista nici un "sshd"

si nici in /etc/rc.d/

uita-te in atunci si in /etc/init/rc daca e director. Daca nu, incearca sa dai la linie de comanda ca root: whereis sshd sau locate sshd. Daca nu iti returneaza nici o cale, atunci asta e, trebuie sa il instalezi fie de pe discul distributiei fie sa il iei online.
Flaber
4th April 2005, 08:41
salut...
-zice ca nu exista acea locatie
(
sh: cd: /etc/init/rc: No such file or directory
sh: cd: /etc/init/: No such file or directory
-si la whereis sshd arata numai atat :
whereis sshd
sshd:
-la locate sshd zice asa :
locate sshd
locate: /var/cache/locate/locatedb: No such file or directory
- daca ma mai puteti ajuta e bine.. daca nu Multumesk pt. atat. sunteti tari !
mufa
4th April 2005, 08:48
Nu, nu te putem ajuta. Problemele tale sunt mult prea complexe si ne depasesc.
later edit: Aceasta distributie pe care o folosesti, xandros, ce manager de pachete foloseste?
cmidp
4th April 2005, 11:34
QUOTE(Flaber @ Apr 4 2005, 07:41)
salut...
-zice ca nu exista acea locatie

(
sh: cd: /etc/init/rc: No such file or directory
sh: cd: /etc/init/: No such file or directory
-si la whereis sshd arata numai atat :
whereis sshd
sshd:
-la locate sshd zice asa :
locate sshd
locate: /var/cache/locate/locatedb: No such file or directory
- daca ma mai puteti ajuta e bine.. daca nu Multumesk pt. atat. sunteti tari !

1. ca fapt divers: esti sigur ca ai ssh-ul instalat?
2. updatedb & (si astepti)
3. apoi incerci din nou sa dai locate
marco71
6th April 2005, 15:33
apt-get install openssh (xandros e debian-based)
GabyBoy
6th April 2005, 19:59
-am si eu aceeasi problema cu ssh`ul pe xandros
am dat tot ce ati spus voi.. si as aimi zice :
- cand dau "apt-get install openssh" asa zice:
apt-get install openssh
Reading Package Lists... Done
Building Dependency Tree... Done
W: Couldn't stat source package list http://xnv2.xandros.com xandros2.0-xn/main Packages (/var/lib/apt/lists/xnv2.xandros.com_2.0_pkg_dists_xandros2.0-xn_main_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://xnv2.xandros.com xandros2.0-xn/contrib Packages (/var/lib/apt/lists/xnv2.xandros.com_2.0_pkg_dists_xandros2.0-xn_contrib_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://xnv2.xandros.com xandros2.0-xn/non-free Packages (/var/lib/apt/lists/xnv2.xandros.com_2.0_pkg_dists_xandros2.0-xn_non-free_binary-i386_Packages) - stat (2 No such file or directory)
W: You may want to run apt-get update to correct these problems
E: Couldn't find package openssh
-cand dau "updatedb &" as azice:
updatedb &
[1] 1058
-si cand dau "locale" as azice:
locale
LANG=POSIX
LC_CTYPE="POSIX"
LC_NUMERIC="POSIX"
LC_TIME="POSIX"
LC_COLLATE="POSIX"
LC_MONETARY="POSIX"
LC_MESSAGES="POSIX"
LC_PAPER="POSIX"
LC_NAME="POSIX"
LC_ADDRESS="POSIX"LC_ALL=
LC_TELEPHONE="POSIX"
LC_MEASUREMENT="POSIX"
LC_IDENTIFICATION="POSIX"
- poate ma puteti ajuta in continuare.. msss...!
mdk10.1
7th April 2005, 01:44
Aceiasi problema am si eu cu ssh22 dar eu am o distributie Mandrake 10.1 ma puteti ajuta dar mai pe intelesul unui novice in ale linuxului si daca este posibil un tutorial in romana.
mufa
7th April 2005, 14:10
GabyBoy: apt-get update inainte de apt-get install openssh
cmidp
7th April 2005, 15:14
Este *locate* nu locale.
GabyBoy
19th April 2005, 08:41
salut.. am si eu un redhat 8.0 si vreau sa deshid ssh 22.
cand dau ./sshd start zice :
./sshd start
Starting sshd: [ OK ]
dar cand vreau sa intru pe ssh 22 nu merge... conection refused...! dc oare????
mufa
19th April 2005, 09:14
QUOTE(GabyBoy @ Apr 19 2005, 09:41)
salut.. am si eu un redhat 8.0 si vreau sa deshid ssh 22.
dar cand vreau sa intru pe ssh 22 nu merge... conection refused...! dc oare????
/var/log/secure ce spune ?
GabyBoy
19th April 2005, 09:31
asta zice..... :
cat /var/log/secure
Apr 17 15:19:23 localhost sshd[560]: Server listening on 0.0.0.0 port 22.
Apr 17 15:20:25 localhost sshd[560]: Received signal 15; terminating.
Apr 17 15:33:41 localhost sshd[570]: Server listening on 0.0.0.0 port 22.
Apr 17 15:36:46 localhost sshd[570]: Received signal 15; terminating.
Apr 17 15:41:47 localhost sshd[571]: Server listening on 0.0.0.0 port 22.
Apr 17 15:43:42 localhost sshd[571]: Received signal 15; terminating.
Apr 17 15:46:54 localhost sshd[571]: Server listening on 0.0.0.0 port 22.
Apr 17 17:06:13 localhost sshd[539]: Server listening on 0.0.0.0 port 22.
Apr 17 17:06:58 localhost sshd[539]: Received signal 15; terminating.
Apr 17 17:12:19 localhost sshd[689]: Server listening on 0.0.0.0 port 22.
Apr 17 17:49:31 localhost sshd[689]: Received signal 15; terminating.
Apr 17 17:52:54 localhost sshd[717]: Server listening on 0.0.0.0 port 22.
Apr 17 20:54:39 localhost sshd[717]: Received signal 15; terminating.
Apr 17 20:58:06 localhost sshd[717]: Server listening on 0.0.0.0 port 22.
Apr 17 22:47:21 localhost sshd[727]: Server listening on 0.0.0.0 port 22.
Apr 17 23:04:52 localhost sshd[727]: Received signal 15; terminating.
Apr 17 23:08:27 localhost sshd[716]: Server listening on 0.0.0.0 port 22.
Apr 19 01:20:11 localhost sshd[663]: Server listening on 0.0.0.0 port 22.
Apr 19 01:24:48 localhost sshd[572]: Server listening on 0.0.0.0 port 22.
Apr 19 01:32:48 localhost sshd[671]: Server listening on 0.0.0.0 port 22.
Apr 19 01:34:45 localhost sshd[671]: Received signal 15; terminating.
Apr 19 01:50:28 localhost sshd[714]: Server listening on 0.0.0.0 port 22.
Apr 19 02:00:08 localhost sshd[711]: Server listening on 0.0.0.0 port 22.
Apr 19 02:03:02 localhost sshd[618]: Server listening on 0.0.0.0 port 22.
Apr 19 02:04:20 localhost sshd[618]: Received signal 15; terminating.
Apr 19 02:16:15 localhost sshd[833]: Server listening on 0.0.0.0 port 22.
Apr 19 09:19:00 localhost sshd[731]: Server listening on 0.0.0.0 port 22.
Apr 19 09:33:54 localhost sshd[953]: error: Bind to port 22 on 0.0.0.0 failed: A
ddress already in use.
Apr 19 09:33:54 localhost sshd[953]: fatal: Cannot bind any address.
Apr 19 10:17:10 localhost sshd[730]: Server listening on 0.0.0.0 port 22.
ce sa fac.. ?
(((
mufa
19th April 2005, 09:43
killall -9 sshd (ai grija sa nu fii legat remote)
/etc/init.d/sshd start
GabyBoy
19th April 2005, 10:12
tot nu se deshide
((
mufa
19th April 2005, 10:18
QUOTE(GabyBoy @ Apr 19 2005, 11:12)
tot nu se deshide

((
Ma bucur. /var/log/secure ce spune de data asta?
Daca tot "List-PBind to port 22 on 0.0.0.0 failed: Address already in use." vezi cine asculta pe portul 22 si de ce.
GabyBoy
19th April 2005, 10:26
de data asta asa scire...:
cat /var/log/secure
Apr 17 15:19:23 localhost sshd[560]: Server listening on 0.0.0.0 port 22.
Apr 17 15:20:25 localhost sshd[560]: Received signal 15; terminating.
Apr 17 15:33:41 localhost sshd[570]: Server listening on 0.0.0.0 port 22.
Apr 17 15:36:46 localhost sshd[570]: Received signal 15; terminating.
Apr 17 15:41:47 localhost sshd[571]: Server listening on 0.0.0.0 port 22.
Apr 17 15:43:42 localhost sshd[571]: Received signal 15; terminating.
Apr 17 15:46:54 localhost sshd[571]: Server listening on 0.0.0.0 port 22.
Apr 17 17:06:13 localhost sshd[539]: Server listening on 0.0.0.0 port 22.
Apr 17 17:06:58 localhost sshd[539]: Received signal 15; terminating.
Apr 17 17:12:19 localhost sshd[689]: Server listening on 0.0.0.0 port 22.
Apr 17 17:49:31 localhost sshd[689]: Received signal 15; terminating.
Apr 17 17:52:54 localhost sshd[717]: Server listening on 0.0.0.0 port 22.
Apr 17 20:54:39 localhost sshd[717]: Received signal 15; terminating.
Apr 17 20:58:06 localhost sshd[717]: Server listening on 0.0.0.0 port 22.
Apr 17 22:47:21 localhost sshd[727]: Server listening on 0.0.0.0 port 22.
Apr 17 23:04:52 localhost sshd[727]: Received signal 15; terminating.
Apr 17 23:08:27 localhost sshd[716]: Server listening on 0.0.0.0 port 22.
Apr 19 01:20:11 localhost sshd[663]: Server listening on 0.0.0.0 port 22.
Apr 19 01:24:48 localhost sshd[572]: Server listening on 0.0.0.0 port 22.
Apr 19 01:32:48 localhost sshd[671]: Server listening on 0.0.0.0 port 22.
Apr 19 01:34:45 localhost sshd[671]: Received signal 15; terminating.
Apr 19 01:50:28 localhost sshd[714]: Server listening on 0.0.0.0 port 22.
Apr 19 02:00:08 localhost sshd[711]: Server listening on 0.0.0.0 port 22.
Apr 19 02:03:02 localhost sshd[618]: Server listening on 0.0.0.0 port 22.
Apr 19 02:04:20 localhost sshd[618]: Received signal 15; terminating.
Apr 19 02:16:15 localhost sshd[833]: Server listening on 0.0.0.0 port 22.
Apr 19 09:19:00 localhost sshd[731]: Server listening on 0.0.0.0 port 22.
Apr 19 09:33:54 localhost sshd[953]: error: Bind to port 22 on 0.0.0.0 failed: A
ddress already in use.
Apr 19 09:33:54 localhost sshd[953]: fatal: Cannot bind any address.
Apr 19 10:17:10 localhost sshd[730]: Server listening on 0.0.0.0 port 22.
Apr 19 11:02:59 localhost sshd[731]: Server listening on 0.0.0.0 port 22.
Apr 19 11:09:20 localhost sshd[936]: Server listening on 0.0.0.0 port 22.
ce sa fac ??? dar daca tot nu merge ssh 22 pot sa deshid macat telnetu 23 ???? cum ?
mercy
mufa
19th April 2005, 10:34
Dupa ce incearca sa faci ssh pe masina respectiva, uita-te in /var/log/messages dupa ssh si vezi ce zice.
GabyBoy
19th April 2005, 10:39
sunt foarte numte ... mesaje (linii) in /var/log/messages
eu ti le atay pe ultimele... ca daca ma-s apuka sa le pun pe toate ar ocupa toto forumu ..
Apr 19 11:06:27 localhost kernel: eth1: link up.
Apr 19 11:06:27 localhost kernel: eth1: Setting full-duplex based on negotiated link capability.
Apr 19 11:06:28 localhost /etc/hotplug/net.agent: invoke ifup eth1
Apr 19 11:09:20 localhost sshd: succeeded
Apr 19 11:11:12 localhost login(pam_unix)[825]: session closed for user root
Apr 19 11:34:18 localhost sshd: succeeded
??
mufa
19th April 2005, 11:21
QUOTE(GabyBoy @ Apr 19 2005, 11:39)
sunt foarte numte ... mesaje (linii) in /var/log/messages
eu ti le atay pe ultimele... ca daca ma-s apuka sa le pun pe toate ar ocupa toto forumu ..
Apr 19 11:06:27 localhost kernel: eth1: link up.
Apr 19 11:06:27 localhost kernel: eth1: Setting full-duplex based on negotiated link capability.
Apr 19 11:06:28 localhost /etc/hotplug/net.agent: invoke ifup eth1
Apr 19 11:09:20 localhost sshd: succeeded
Apr 19 11:11:12 localhost login(pam_unix)[825]: session closed for user root
Apr 19 11:34:18 localhost sshd: succeeded
??
ssh -v localhost arata ceva interesant?
GabyBoy
19th April 2005, 11:27
asa zice... :
ssh -v localhost
OpenSSH_3.4p1, SSH protocols 1.5/2.0, OpenSSL 0x0090602f
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Rhosts Authentication disabled, originating port will not be trusted.
debug1: ssh_connect: needpriv 0
debug1: Connecting to localhost [127.0.0.1] port 22.
debug1: Connection established.
debug1: identity file /root/.ssh/identity type -1
debug1: identity file /root/.ssh/id_rsa type -1
debug1: identity file /root/.ssh/id_dsa type -1
debug1: Remote protocol version 1.99, remote software version OpenSSH_3.4p1
debug1: match: OpenSSH_3.4p1 pat OpenSSH*
Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_3.4p1
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: dh_gen_key: priv key bits set: 124/256
debug1: bits set: 1582/3191
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
The authenticity of host 'localhost (127.0.0.1)' can't be established.
RSA key fingerprint is b0:f6:89:94:38:63:10:42:98:2e:c8:83:cc:20:8d:02.
Are you sure you want to continue connecting (yes/no)? yes
yes
Warning: Permanently added 'localhost' (RSA) to the list of known hosts.
debug1: bits set: 1631/3191
debug1: ssh_rsa_verify: signature correct
debug1: kex_derive_keys
debug1: newkeys: mode 1
debug1: SSH2_MSG_NEWKEYS sent
debug1: waiting for SSH2_MSG_NEWKEYS
debug1: newkeys: mode 0
debug1: SSH2_MSG_NEWKEYS received
debug1: done: ssh_kex2.
debug1: send SSH2_MSG_SERVICE_REQUEST
debug1: service_accept: ssh-userauth
debug1: got SSH2_MSG_SERVICE_ACCEPT
debug1: authentications that can continue: publickey,password,keyboard-interactive
debug1: next auth method to try is publickey
debug1: try privkey: /root/.ssh/identity
debug1: try privkey: /root/.ssh/id_rsa
debug1: try privkey: /root/.ssh/id_dsa
debug1: next auth method to try is keyboard-interactive
debug1: authentications that can continue: publickey,password,keyboard-interactive
debug1: next auth method to try is password
root@localhost's password:
debug1: ssh-userauth2 successful: method password
debug1: channel 0: new [client-session]
debug1: send channel open 0
debug1: Entering interactive session.
debug1: ssh_session2_setup: id 0
debug1: channel request 0: pty-req
debug1: channel request 0: shell
debug1: fd 3 setting TCP_NODELAY
debug1: channel 0: open confirm rwindow 0 rmax 32768
Last login: Tue Apr 19 11:03:46 2005
No value for $TERM and no -T specified
No value for $TERM and no -T specified
ce sa fac ma ??? ori sa deshid ssh 22 ori telnet 23 ... asta vreu. ce sa fac ??????? pls
mufa
19th April 2005, 11:36
Daca incerci sa faci ssh pe masina respectiva de pe alta masina, ce se intimpla ?
Porneste si sshd-ul in debug mode si vezi ce se intimpla.
GabyBoy
19th April 2005, 12:02
nu inteleg ce vreis a zici
Aceasta este o versiune simplificată a paginii originale. Pentru a vizita versiunea originala
click aici.