PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : ssh Zugriff auf NAS



dertaliesin
23.02.11, 22:32
Hallo,

scheiter gerade an dem Verusch SqueezeCenter per ssh auf meiner Linkstation Live zu installieren. (OS:Kubuntu 9.04, ssh und openssh installiert)
Ich bekomme bei jedem Zugriffversuch per ssh (ssh user@ip) die Meldung:
port 22: Connection refused

Über Port 21 (-p 21) komme ich problemlos rein, allerdings kann ich über diesen Port die Software nicht installieren.
Die NAS ist direkt mit dem Rechner verbunden.

Kann mir evtl. jemand sagen was ich konfigurieren muss, um über Port 22 reinzukommen.

hier mal noch meine ssh_config:



# This is the ssh client system-wide configuration file. See
# ssh_config(5) for more information. This file provides defaults for
# users, and the values can be changed in per-user configuration files
# or on the command line.

# Configuration data is parsed as follows:
# 1. command line options
# 2. user-specific file
# 3. system-wide file
# Any configuration value is only changed the first time it is set.
# Thus, host-specific definitions should be at the beginning of the
# configuration file, and defaults at the end.

# Site-wide defaults for some commonly used options. For a comprehensive
# list of available options, their meanings and defaults, please see the
# ssh_config(5) man page.

Host *
# ForwardAgent no
# ForwardX11 no
# ForwardX11Trusted yes
# RhostsRSAAuthentication no
# RSAAuthentication yes
# PasswordAuthentication yes
# HostbasedAuthentication no
# GSSAPIAuthentication no
# GSSAPIDelegateCredentials no
# GSSAPIKeyExchange no
# GSSAPITrustDNS no
# BatchMode no
# CheckHostIP yes
# AddressFamily any
# ConnectTimeout 0
# StrictHostKeyChecking ask
# IdentityFile ~/.ssh/identity
# IdentityFile ~/.ssh/id_rsa
# IdentityFile ~/.ssh/id_dsa
# Port 22
# Protocol 2,1
# Cipher 3des
# Ciphers aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc
# MACs hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-ripemd160
# EscapeChar ~
# Tunnel no
# TunnelDevice any:any
# PermitLocalCommand no
# VisualHostKey no
SendEnv LANG LC_*
HashKnownHosts yes
GSSAPIAuthentication yes
GSSAPIDelegateCredentials no


und die sshd_config


# Package generated configuration file
# See the sshd_config(5) manpage for details

# What ports, IPs and protocols we listen for
Port 22
# 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 yes
StrictModes yes

RSAAuthentication yes
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

# Change to no to disable tunnelled clear text passwords
#PasswordAuthentication yes

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

# GSSAPI options
#GSSAPIAuthentication no
#GSSAPICleanupCredentials yes

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

#MaxStartups 10:30:60
#Banner /etc/issue.net

# Allow client to pass locale environment variables
AcceptEnv LANG LC_*

Subsystem sftp /usr/lib/openssh/sftp-server

# 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


Danke für Eure Hilfe

marce
24.02.11, 06:13
Läuft der SSH-Dienst denn überhaubt? Ist irgendwo noch eine Firewall aktiv?

Manoman
24.02.11, 06:30
so ein teil habe ich nicht, aber ohne anleitung wird das nix
port 21 ist der FTP server, z.B. ftp://NAS-IP im browser eingeben
und mache ein backup von dem teil, Enabling sshd for Buffalo Linkstation Live (LS-CHL) (http://kris.me.uk/2010/01/03/enabling-sshd-for-buffalo-linkstation-live.html)

dertaliesin
24.02.11, 06:35
Läuft der SSH-Dienst denn überhaubt? Ist irgendwo noch eine Firewall aktiv?

Also der ssh-agent steht auf jeden Fall in der Systemüberwachung und dich ich per ssh auch übr Port 21 reinkomme gehen ich von der Aktivität aus (evtl. noch ein besserer Weg das rauszufinden?)

Firewall habe ich keine aktivierrt.

marce
24.02.11, 06:39
Port 21 hat leider nur so rein gar nichts mit ssh zu tun...

Ach ja - und wie kommst Du darauf, daß auf dem Ding (http://www.buffalo-technology.com/products/network-storage/linkstation/ls-chl-linkstation-live/)ein Ubuntu laufen würde?

Und noch ein ach ja - http://www.debacher.de/wiki/Buffalo_LinkStation_Live kennst Du?