76

Odp: Reverse SSH tunnel dwa pytania

To czego używasz, nie openssh?

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

77

Odp: Reverse SSH tunnel dwa pytania

opkg update openssh-serve

78

Odp: Reverse SSH tunnel dwa pytania

Na kliencie czego używasz.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

79

Odp: Reverse SSH tunnel dwa pytania

Jak utworzyć innego użytkownika i jak mu nadać swoje hasło ?

80

Odp: Reverse SSH tunnel dwa pytania

http://eko.one.pl/?p=openwrt-multiuser

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

81

Odp: Reverse SSH tunnel dwa pytania

Dzięki Nawet na nowym użytkowniku
Access denied
nowy@xxx.xxx.xx.xx's password:

82

Odp: Reverse SSH tunnel dwa pytania

Pokaż konfigi od openssh.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

83

Odp: Reverse SSH tunnel dwa pytania

# 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

84

Odp: Reverse SSH tunnel dwa pytania

Wynik netstat  pokaż

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

85

Odp: Reverse SSH tunnel dwa pytania

netstat  -an jeszcze

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

86

Odp: Reverse SSH tunnel dwa pytania

netstat  -anp

jeszcze zrób.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

87

Odp: Reverse SSH tunnel dwa pytania

Przez :200 możesz się na niego zalogować? Używasz passwd czy shadow?

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

88 (edytowany przez robo1973 2014-01-25 12:30:28)

Odp: Reverse SSH tunnel dwa pytania

przez 200 (dropbear) mogę Używam passwd Na 22 nie mogę (ssh) Z dnia na dzień mi padło Może wirus jakiś?

89

Odp: Reverse SSH tunnel dwa pytania

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.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

90

Odp: Reverse SSH tunnel dwa pytania

Może coś w itables mam pomieszane i blokuje? Jak sprawdzić ustawienia ruchu za NAT

91

Odp: Reverse SSH tunnel dwa pytania

iptables -v -L wszystko pokaże.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

92 (edytowany przez robo1973 2014-01-28 12:05:37)

Odp: Reverse SSH tunnel dwa pytania

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'

93 (edytowany przez build000 2014-01-28 13:46:20)

Odp: Reverse SSH tunnel dwa pytania

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.

94

Odp: Reverse SSH tunnel dwa pytania

/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.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

95

Odp: Reverse SSH tunnel dwa pytania

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ć?

96

Odp: Reverse SSH tunnel dwa pytania

Wyłącz lub zmień port na DrayTeku?

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.