Über SSH kein FTP

Operaiter

New Member
Hallo Community,

um ehrlich zu sein weiß ich nicht genau ich besser ins SSH oder FTP-Forum poste. Aber da SFTP ja über SSH läuft und ich kein FTP spezifisches Probleme habe poste ich mal hier! :D

Habe mir meinen openSSH Server ein wenig gesichert. Leider kann ich mich nun mit FileZilla nicht einloggen um Daten zu übertragen.

So schaut meine Konfig aus:

Code:
=~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2010.10.31 14:27:03 =~=~=~=~=~=~=~=~=~=~=~=
:q
root@vs2064092:/etc/ssh# vim sshd_config 
"sshd_config" 80L, 1917C# Package generated configuration file
# See the sshd(8) manpage for details

# What ports, IPs and protocols we listen for
Port 22222
# Use these options to restrict which interfaces/protocols sshd will bind to
#ListenAddress ::
#ListenAddress 0.0.0.0
Protocol 2
# HostKeys for protocol version 2
HostKey /etc/ssh/ssh_host_rsa_key
HostKey /etc/ssh/ssh_host_dsa_key
#Privilege Separation is turned on for security
UsePrivilegeSeparation yes

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

# Logging
SyslogFacility AUTH
LogLevel INFO

# Authentication:
LoginGraceTime 120
PermitRootLogin no
StrictModes yes

RSAAuthentication no
PubkeyAuthentication yes
#AuthorizedKeysFile     %h/.ssh/authorized_keys

# Don't read the user's ~/.rhosts and ~/.shosts files
IgnoreRhosts yes
# For this to work you will also need host keys in /etc/ssh_known_hosts
RhostsRSAAuthentication no
# similar for protocol version 2
HostbasedAuthentication no
# Uncomment if you don't trust ~/.ssh/known_hosts for RhostsRSAAuthentication
#IgnoreUserKnownHosts yes
# To enable empty passwords, change to yes (NOT RECOMMENDED)
PermitEmptyPasswords no

# Change to yes to enable challenge-response passwords (beware issues with
# some PAM modules and threads)
ChallengeResponseAuthentication no


X11Forwarding yes
X11DisplayOffset 10
PrintMotd no
PrintLastLog yes
TCPKeepAlive yes
#UseLogin no

# Allow client to pass locale environment variables
AcceptEnv LANG LC_*
Subsystem sftp /usr/lib/openssh/sftp-server

UsePAM yes
AllowUsers admin

Client Log:
Code:
15:43:58	Status:	Connecting to 82.25.64.92:22222...
15:43:58	Response:	fzSftp started
15:43:58	Command:	open "admin@82.25.64.92" 22222
15:44:19	Error:	Network error: Connection timed out
15:44:19	Error:	Could not connect to server

Das wars dann auch schonwieder :D

Firewall auf dem Hostsystem ist deaktiviert :-/

Bin gerade bisschen verwundert :D Wäre klasse wenn einer einen Fehler für mich findet ;)

LG OP
 
Last edited by a moderator:
admin hat schon die Berechtigung sich auf die Shell einzuloggen?

Ich nehm an du hast den SSHD auch schon neugestartet?


€dith:

82.25.64.92 ?
Sollte das nicht 85.25.64.92 ?

82.25.64.92 > cpc2-oxfd16-0-0-cust91.4-3.cable.virginmedia.com


Code:
Status:	Verbinde mit 85.25.64.92:22222...
Antwort:	fzSftp started
Befehl:	open "admin@85.25.64.92" 22222
Befehl:	Neuem Serverschlüssel vertrauen: Einmal
Befehl:	Pass: 
Fehler:	Authentifizierung fehlgeschlagen.
Fehler:	Kritischer Fehler
Fehler:	Herstellen der Verbindung zum Server fehlgeschlagen
 
Last edited by a moderator:
MOD: Full-Quote entfernt!
Ach du ******e wie MEGA Peinlich :D

Ich google hier seit zwei Std rum... hab schon xmal die conf verändert -,-

Firewall an und aus...

...Und dann die falsche IP -,-

Aber... sagdochmal. Wieso fällt DIR mein Fehler in der IP auf? :D
 
Last edited by a moderator:
Also erstmal hab ich deine IP auf die du connected hast kopiert und es selbst mal ausprobiert auf Port 22 sowie 22222 > kein Erfolg.

Dann wollt ich n Portscan starten und der aufgelöste Host war cpc2-oxfd16-0-0-cust91.4-3.cable.virginmedia.com - komisch :eek: , also hab ich mir dein Posting nochmal durchgelesen und root@vs2064092:/etc/ssh# vim sshd_config gesehen.

vs2064092 = Server4You = IP fängt mit 85.25. an, 82 durch 85 ausgetauscht - und alles war wunderbar :D
 
Back
Top