Odp: Reverse SSH tunnel dwa pytania
To czego używasz, nie openssh?
Nie jesteś zalogowany. Proszę się zalogować lub zarejestrować.
eko.one.pl → Oprogramowanie / Software → Reverse SSH tunnel dwa pytania
Strony Poprzednia 1 2 3 4
Zaloguj się lub zarejestruj by napisać odpowiedź
To czego używasz, nie openssh?
opkg update openssh-serve
Na kliencie czego używasz.
Jak utworzyć innego użytkownika i jak mu nadać swoje hasło ?
http://eko.one.pl/?p=openwrt-multiuser
Dzięki Nawet na nowym użytkowniku
Access denied
nowy@xxx.xxx.xx.xx's password:
Pokaż konfigi od openssh.
# 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
# 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 22
#AddressFamily any
#ListenAddress 0.0.0.0
#ListenAddress ::
# The default requires explicit activation of protocol 1
Protocol 2
# HostKey for protocol version 1
#HostKey /etc/ssh/ssh_host_key
# HostKeys for protocol version 2
#HostKey /etc/ssh/ssh_host_rsa_key
#HostKey /etc/ssh/ssh_host_dsa_key
#HostKey /etc/ssh/ssh_host_ecdsa_key
# Lifetime and size of ephemeral version 1 server key
#KeyRegenerationInterval 1h
#ServerKeyBits 1024
# Logging
# obsoletes QuietMode and FascistLogging
#SyslogFacility AUTH
#LogLevel INFO
# Authentication:
#LoginGraceTime 2m
#PermitRootLogin yes
#StrictModes yes
#MaxAuthTries 6
#MaxSessions 10
#RSAAuthentication yes
PubkeyAuthentication yes
AuthorizedKeysFile .ssh/authorized_keys
# For this to work you will also need host keys in /etc/ssh/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
# Don't read the user's ~/.rhosts and ~/.shosts files
#IgnoreRhosts yes
# 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
#KerberosGetAFSToken no
# GSSAPI options
#GSSAPIAuthentication no
#GSSAPICleanupCredentials yes
# Set this to 'yes' to enable PAM authentication, account processing,
# and session processing. If this is enabled, PAM authentication will
# be allowed through the ChallengeResponseAuthentication and
# PasswordAuthentication. Depending on your PAM configuration,
# PAM authentication via ChallengeResponseAuthentication may bypass
# the setting of "PermitRootLogin without-password".
# If you just want the PAM account and session checks to run without
# PAM authentication, then enable this but set PasswordAuthentication
# and ChallengeResponseAuthentication to 'no'.
# UsePAM yes
#AllowAgentForwarding yes
AllowTcpForwarding yes
GatewayPorts yes
#X11Forwarding no
#X11DisplayOffset 10
#X11UseLocalhost yes
#PrintMotd yes
#PrintLastLog yes
TCPKeepAlive yes
#UseLogin no
#UsePrivilegeSeparation yes
#PermitUserEnvironment no
#Compression delayed
ClientAliveInterval 30
ClientAliveCountMax 99999
#UseDNS yes
#PidFile /var/run/sshd.pid
#MaxStartups 10
#PermitTunnel no
#ChrootDirectory none
# no default banner path
#Banner none
# override default of no subsystems
Subsystem sftp /usr/lib/sftp-server
# Example of overriding settings on a per-user basis
#Match User anoncvs
# X11Forwarding no
# AllowTcpForwarding no
# ForceCommand cvs server
Wynik netstat pokaż
netstat -an jeszcze
netstat -anp
jeszcze zrób.
Przez :200 możesz się na niego zalogować? Używasz passwd czy shadow?
przez 200 (dropbear) mogę Używam passwd Na 22 nie mogę (ssh) Z dnia na dzień mi padło Może wirus jakiś?
Przeniosłem sobie dropbear na port 200 i zainstalowałem openssh. Działa od ręki - przy pierwszym zalogowaniu krzyknął tylko że mam zmienić hasło i tyle. Ale działa.
Może coś w itables mam pomieszane i blokuje? Jak sprawdzić ustawienia ruchu za NAT
iptables -v -L wszystko pokaże.
Kol Cezary jak wyłączyć dropbear? Może on mi coś zakłóca
Tak mam w firewall/dobrze?/
config rule
option _name 'ssh_22'
option src 'wan'
option target 'ACCEPT'
option proto 'tcp'
option dest_port '22'
Generalnie to chyba wydaje mi się, że jak działa openssh-server to używanie dropbear mija się z celem i na odwrót - jak jedno to nie drugie.
/etc/init.d/dropbear stop
/etc/init.d/dropbear disable
Dokładnie tak, bo to są dwa serwery ssh. To jak by używać 2 różnych serwerów ftp na jednym komputerze.
Przyczyna ustalona. Na DrayTeku, którym robię przekierowania na TL podpoił się jakiś serwer ssh na 22 i on się zgłasza. Mogę się na niego logować przez login i pass DrayTeka. Tylko co z tym dalej zrobić?
Wyłącz lub zmień port na DrayTeku?
Strony Poprzednia 1 2 3 4
Zaloguj się lub zarejestruj by napisać odpowiedź
eko.one.pl → Oprogramowanie / Software → Reverse SSH tunnel dwa pytania
Forum oparte o PunBB, wspierane przez Informer Technologies, Inc