[Risolto]Problema accesso server SFTP

Installazione, configurazione e uso di Ubuntu come server: web, ftp, mail, news, proxy, dns e altro.
Avatar utente
dade-bian
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 597
Iscrizione: sabato 17 dicembre 2011, 12:08
Desktop: Gnome Shell
Distribuzione: Ubuntu/Debian
Sesso: Maschile
Località: Milano

[Risolto]Problema accesso server SFTP

Messaggio da dade-bian »

Ciao a tutti è da qualche giorno che sto cercando di risolvere un problema, non riesco a rimettere in piedi il server SFTP, utilizzo il pachetto openssh-server ma niente da fare
quando lancio da terminale (unico modo per avere un errore significativo)

Codice: Seleziona tutto

sftp utonto@192.168.1.5:
packet_write_wait: Connection to 192.168.1.5 port 22: Broken pipe
ho letto che molte persone hanno risolto aggiungendo "ClientAliveInterval 60" nel /etc/ssh/sshd_config cosi da aumentare il tempo di intervallo del cliente in ascolto ....
... ma senza successo, da errore nell' immediato
Ultima modifica di dade-bian il martedì 10 luglio 2018, 20:14, modificato 1 volta in totale.
Buona Community a tutti !!
pachisapiu

Re: Problema accesso server SFTP

Messaggio da pachisapiu »

ma ssh funziona ?
Avatar utente
dade-bian
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 597
Iscrizione: sabato 17 dicembre 2011, 12:08
Desktop: Gnome Shell
Distribuzione: Ubuntu/Debian
Sesso: Maschile
Località: Milano

Re: Problema accesso server SFTP

Messaggio da dade-bian »

prima che installavo openssh-server si, adesso neanche più lui
Buona Community a tutti !!
Avatar utente
thece
Tenace Tecnocrate
Tenace Tecnocrate
Messaggi: 12919
Iscrizione: lunedì 23 aprile 2007, 14:16
Distribuzione: Debian 12 (Bookworm) - KDE

Re: Problema accesso server SFTP

Messaggio da thece »

:ciao:

è molto difficile (diciamo impossibile) che SFTP funzioni se il server SSH (su cui si basa) non funziona, tu che dici? Sistemiamo prima il server SSH. Vediamo cosa c'è di installato

Codice: Seleziona tutto

dpkg -l | grep ssh
sudo find /etc -iname "*ssh*"
Avatar utente
dade-bian
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 597
Iscrizione: sabato 17 dicembre 2011, 12:08
Desktop: Gnome Shell
Distribuzione: Ubuntu/Debian
Sesso: Maschile
Località: Milano

Re: Problema accesso server SFTP

Messaggio da dade-bian »

Codice: Seleziona tutto

ii  libssh-gcrypt-4:i386                  0.7.3-2                                     i386         tiny C SSH library (gcrypt flavor)
ii  libssh2-1:i386                        1.7.0-1                                     i386         SSH2 client-side library
ii  openssh-client                        1:7.4p1-10+deb9u3                           i386         secure shell (SSH) client, for secure access to remote machines
ii  openssh-server                        1:7.4p1-10+deb9u3                           i386         secure shell (SSH) server, for secure access from remote machines
ii  openssh-sftp-server                   1:7.4p1-10+deb9u3                           i386         secure shell (SSH) sftp server module, for SFTP access from remote machines

Codice: Seleziona tutto

/etc/network/if-up.d/openssh-server
/etc/pam.d/sshd
/etc/rc5.d/S01ssh
/etc/rc3.d/S01ssh
/etc/xdg/autostart/gnome-keyring-ssh.desktop
/etc/ssh
/etc/ssh/ssh_host_rsa_key.pub
/etc/ssh/ssh_host_ed25519_key
/etc/ssh/ssh_host_ecdsa_key
/etc/ssh/sshd_config
/etc/ssh/ssh_config
/etc/ssh/ssh_host_ecdsa_key.pub
/etc/ssh/ssh_host_rsa_key
/etc/ssh/ssh_host_ed25519_key.pub
/etc/default/ssh
/etc/rc4.d/S01ssh
/etc/systemd/system/multi-user.target.wants/ssh.service
/etc/systemd/system/sshd.service
/etc/X11/Xsession.d/90x11-common_ssh-agent
/etc/init/ssh.conf
/etc/init.d/ssh
/etc/ufw/applications.d/openssh-server
/etc/rc2.d/S01ssh
si sono d'accordo che con le informaizoni che ho dato si puo fare poco
Buona Community a tutti !!
Avatar utente
thece
Tenace Tecnocrate
Tenace Tecnocrate
Messaggi: 12919
Iscrizione: lunedì 23 aprile 2007, 14:16
Distribuzione: Debian 12 (Bookworm) - KDE

Re: Problema accesso server SFTP

Messaggio da thece »

Il server SSH è installato, correttamente? E' presto per dirlo ...

Vediamo se è in funzione

Codice: Seleziona tutto

sudo netstat -tulnp | grep ssh
Ne hai modificato la configurazione di default?

Codice: Seleziona tutto

stat /etc/ssh/sshd_config
Avatar utente
dade-bian
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 597
Iscrizione: sabato 17 dicembre 2011, 12:08
Desktop: Gnome Shell
Distribuzione: Ubuntu/Debian
Sesso: Maschile
Località: Milano

Re: Problema accesso server SFTP

Messaggio da dade-bian »

thece grazie per l'assistenza.
Il server si è installato correttamente(mi azzarderei a dire) , in quanto prima dell installazione dell sftp andava, è stato installato insieme al sistema operativo (debian-stable).

Codice: Seleziona tutto

tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      477/sshd            
tcp6       0      0 :::22                   :::*                    LISTEN      477/sshd 
/etc/ssh/sshd_config
si ho modificato dei parametri, per personalizzarlo alla mia rete, nulla di elaborato e che non avessi fatto prima

Codice: Seleziona tutto

  File: /etc/ssh/sshd_config
  Dim.: 3524      	Blocchi: 8          Blocco di IO: 4096   file regolare
Device: 802h/2050d	Inode: 8914716     Coll.: 1
Accesso: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
Accesso  : 2018-07-10 11:28:59.358463603 +0200
Modifica : 2018-07-10 11:28:42.474406913 +0200
Cambio   : 2018-07-10 11:28:42.502407007 +0200
Creazione: -
grazie ancora, a disposizione.
Buona Community a tutti !!
Avatar utente
thece
Tenace Tecnocrate
Tenace Tecnocrate
Messaggi: 12919
Iscrizione: lunedì 23 aprile 2007, 14:16
Distribuzione: Debian 12 (Bookworm) - KDE

Re: Problema accesso server SFTP

Messaggio da thece »

Posta il file di configurazione del servizio SSH, così vediamo quali modifiche hai apportato

Codice: Seleziona tutto

cat /etc/ssh/sshd_config
Avatar utente
dade-bian
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 597
Iscrizione: sabato 17 dicembre 2011, 12:08
Desktop: Gnome Shell
Distribuzione: Ubuntu/Debian
Sesso: Maschile
Località: Milano

Re: Problema accesso server SFTP

Messaggio da dade-bian »

Codice: Seleziona tutto

#	$OpenBSD: sshd_config,v 1.100 2016/08/15 12:32:04 naddy Exp $

# 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 override the
# default value.

#Port 22
#AddressFamily any
#ListenAddress 0.0.0.0
#ListenAddress ::

#HostKey /etc/ssh/ssh_host_rsa_key
#HostKey /etc/ssh/ssh_host_ecdsa_key
#HostKey /etc/ssh/ssh_host_ed25519_key

# Ciphers and keying
#RekeyLimit default none

# Logging
#SyslogFacility AUTH
#LogLevel INFO

# Authentication:

#LoginGraceTime 2m
#PermitRootLogin prohibit-password
#StrictModes yes
#MaxAuthTries 6
#MaxSessions 10

#PubkeyAuthentication yes

# Expect .ssh/authorized_keys2 to be disregarded by default in future.
#AuthorizedKeysFile	.ssh/authorized_keys .ssh/authorized_keys2

#AuthorizedPrincipalsFile none

#AuthorizedKeysCommand none
#AuthorizedKeysCommandUser nobody

# For this to work you will also need host keys in /etc/ssh/ssh_known_hosts
#HostbasedAuthentication no
# Change to yes if you don't trust ~/.ssh/known_hosts for
# 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 yes to enable challenge-response passwords (beware issues with
# some PAM modules and threads)
ChallengeResponseAuthentication no

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

# GSSAPI options
#GSSAPIAuthentication no
#GSSAPICleanupCredentials yes
#GSSAPIStrictAcceptorCheck yes
#GSSAPIKeyExchange no

# 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 no
X11Forwarding yes
#X11DisplayOffset 10
#X11UseLocalhost yes
#PermitTTY yes
PrintMotd no
#PrintLastLog yes
#TCPKeepAlive yes
#UseLogin no
#UsePrivilegeSeparation sandbox
#PermitUserEnvironment no
#Compression delayed
#ClientAliveInterval 0
#ClientAliveCountMax 3
#UseDNS no
#PidFile /var/run/sshd.pid
#MaxStartups 10:30:100
#PermitTunnel no
#ChrootDirectory none
#VersionAddendum none

# no default banner path
#Banner none

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

# override default of no subsystems
#Subsystem sftp /usr/lib/openssh/sftp-server
Subsystem sftp /usr/lib/ssh/sftp-server

# Example of overriding settings on a per-user basis
#Match User anoncvs
#	X11Forwarding no
#	AllowTcpForwarding no
#	PermitTTY no
#	ForceCommand cvs server

ClientAliveInterval 300
ClientAliveCountMax 20

Match User dade
ChrootDirectory /home/dade
PasswordAuthentication yes
AllowTCPForwarding no
X11Forwarding no
ForceCommand internal-sftp
Buona Community a tutti !!
Avatar utente
thece
Tenace Tecnocrate
Tenace Tecnocrate
Messaggi: 12919
Iscrizione: lunedì 23 aprile 2007, 14:16
Distribuzione: Debian 12 (Bookworm) - KDE

Re: Problema accesso server SFTP

Messaggio da thece »

Vedo che hai modificato la configurazione relativamente al server SFTP di riferimento

Codice: Seleziona tutto

...
Subsystem sftp /usr/lib/ssh/sftp-server
...
Sei i sicuro di avere questa libreria installata?

Codice: Seleziona tutto

ls -l /usr/lib/ssh/sftp-server
Non è che dovevi usare questa libreria (commentata), prevista come default dal file di configurazione?

Codice: Seleziona tutto

...
#Subsystem sftp /usr/lib/openssh/sftp-server
...
Avatar utente
dade-bian
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 597
Iscrizione: sabato 17 dicembre 2011, 12:08
Desktop: Gnome Shell
Distribuzione: Ubuntu/Debian
Sesso: Maschile
Località: Milano

Re: Problema accesso server SFTP

Messaggio da dade-bian »

ok sftp-server non esiste, mi sarò lasciato prendere dal panico e avrò provato un po tutte le configurazioni in rete senza prestare attenzione.
Utilizzando

Codice: Seleziona tutto

Subsystem sftp /usr/lib/openssh/sftp-server(decommentato)
comunque non va
Buona Community a tutti !!
Avatar utente
thece
Tenace Tecnocrate
Tenace Tecnocrate
Messaggi: 12919
Iscrizione: lunedì 23 aprile 2007, 14:16
Distribuzione: Debian 12 (Bookworm) - KDE

Re: Problema accesso server SFTP

Messaggio da thece »

Hai decommentato la direttiva giusta, poi commentato (meglio eliminato) la direttiva sbagliata, poi riavviato il server SSH?
Avatar utente
dade-bian
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 597
Iscrizione: sabato 17 dicembre 2011, 12:08
Desktop: Gnome Shell
Distribuzione: Ubuntu/Debian
Sesso: Maschile
Località: Milano

Re: Problema accesso server SFTP

Messaggio da dade-bian »

si ho de-commentato quella giusta ed eliminato quella errata, ho lanciato un reload e un restart
non credo abbia senso ma ho letto alcune persone hanno risolto disabilitando ipv6 e lasciando solo la connessione eth0, non è andato come immaginavo
Buona Community a tutti !!
Avatar utente
Filoteo
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 1315
Iscrizione: venerdì 28 agosto 2015, 9:38
Desktop: Gnome
Distribuzione: Arch Linux

Re: Problema accesso server SFTP

Messaggio da Filoteo »

Conntettiti via ssh in verbose mode e posta il log, potrebbe essere di aiuto

Codice: Seleziona tutto

ssh -v utonto@192.168.1.5
Inoltre perché hai messo

Codice: Seleziona tutto

Match User dade
se poi ti connetti come “utonto”? “utonto” era un esempio?
Ultima modifica di Filoteo il martedì 10 luglio 2018, 18:56, modificato 1 volta in totale.
Avatar utente
thece
Tenace Tecnocrate
Tenace Tecnocrate
Messaggi: 12919
Iscrizione: lunedì 23 aprile 2007, 14:16
Distribuzione: Debian 12 (Bookworm) - KDE

Re: Problema accesso server SFTP

Messaggio da thece »

Facciamo un passo indietro, poi proviamo a ritornare verso il tuo obiettivo

Commenta tutte queste direttive

Codice: Seleziona tutto

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

Codice: Seleziona tutto

# ClientAliveInterval 300
# ClientAliveCountMax 20

Codice: Seleziona tutto

# Match User dade
# ChrootDirectory /home/dade
# PasswordAuthentication yes
# AllowTCPForwarding no
# X11Forwarding no
# ForceCommand internal-sftp
riavvia il servizio SSH e poi ritenta la connessione con SFTP
Avatar utente
dade-bian
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 597
Iscrizione: sabato 17 dicembre 2011, 12:08
Desktop: Gnome Shell
Distribuzione: Ubuntu/Debian
Sesso: Maschile
Località: Milano

Re: Problema accesso server SFTP

Messaggio da dade-bian »

Ho prima commentato tutto, riavviato i servizi ssh e sshd e poi ho lanciato il comando

Codice: Seleziona tutto

ssh -v dade@dbvideo.local
OpenSSH_7.6p1 Ubuntu-4, OpenSSL 1.0.2n  7 Dec 2017
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: Connecting to dbvideo.local [192.168.178.169] port 22.
debug1: Connection established.
debug1: key_load_public: No such file or directory
debug1: identity file /home/dade/.ssh/id_rsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/dade/.ssh/id_rsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/dade/.ssh/id_dsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/dade/.ssh/id_dsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/dade/.ssh/id_ecdsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/dade/.ssh/id_ecdsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/dade/.ssh/id_ed25519 type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/dade/.ssh/id_ed25519-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_7.6p1 Ubuntu-4
debug1: Remote protocol version 2.0, remote software version OpenSSH_7.4p1 Debian-10+deb9u3
debug1: match: OpenSSH_7.4p1 Debian-10+deb9u3 pat OpenSSH* compat 0x04000000
debug1: Authenticating to dbvideo.local:22 as 'dade'
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: algorithm: curve25519-sha256
debug1: kex: host key algorithm: ecdsa-sha2-nistp256
debug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
debug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server host key: ecdsa-sha2-nistp256 SHA256:u8YPqCfuiesEjFwxyKsuB7ySDZ5QlvbU8Q6/lVaQwJw
debug1: Host 'dbvideo.local' is known and matches the ECDSA host key.
debug1: Found key in /home/dade/.ssh/known_hosts:1
debug1: rekey after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: rekey after 134217728 blocks
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_input_ext_info: server-sig-algs=<ssh-ed25519,ssh-rsa,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521>
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: publickey
debug1: Trying private key: /home/dade/.ssh/id_rsa
debug1: Trying private key: /home/dade/.ssh/id_dsa
debug1: Trying private key: /home/dade/.ssh/id_ecdsa
debug1: Trying private key: /home/dade/.ssh/id_ed25519
debug1: Next authentication method: password
dade@dbvideo.local's password: 
debug1: Authentication succeeded (password).
Authenticated to dbvideo.local ([192.168.178.169]:22).
debug1: channel 0: new [client-session]
debug1: Requesting no-more-sessions@openssh.com
debug1: Entering interactive session.
debug1: pledge: network
debug1: client_input_global_request: rtype hostkeys-00@openssh.com want_reply 0
debug1: Sending environment.
debug1: Sending env LANG = it_IT.UTF-8
Linux dbvideo 4.9.0-6-686-pae #1 SMP Debian 4.9.88-1+deb9u1 (2018-05-07) i686

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Tue Jul 10 19:07:20 2018 from 192.168.178.20
ora via ssh accedo, diversamente da prima, ma no al sftp
Ultima modifica di dade-bian il martedì 10 luglio 2018, 19:14, modificato 1 volta in totale.
Buona Community a tutti !!
Avatar utente
Filoteo
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 1315
Iscrizione: venerdì 28 agosto 2015, 9:38
Desktop: Gnome
Distribuzione: Arch Linux

Re: Problema accesso server SFTP

Messaggio da Filoteo »

Posta anche

Codice: Seleziona tutto

sftp -v dade@dbvideo.local
Avatar utente
dade-bian
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 597
Iscrizione: sabato 17 dicembre 2011, 12:08
Desktop: Gnome Shell
Distribuzione: Ubuntu/Debian
Sesso: Maschile
Località: Milano

Re: Problema accesso server SFTP

Messaggio da dade-bian »

Codice: Seleziona tutto

sftp -v dade@dbvideo.local
OpenSSH_7.6p1 Ubuntu-4, OpenSSL 1.0.2n  7 Dec 2017
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: Connecting to dbvideo.local [192.168.178.169] port 22.
debug1: Connection established.
debug1: key_load_public: No such file or directory
debug1: identity file /home/dade/.ssh/id_rsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/dade/.ssh/id_rsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/dade/.ssh/id_dsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/dade/.ssh/id_dsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/dade/.ssh/id_ecdsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/dade/.ssh/id_ecdsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/dade/.ssh/id_ed25519 type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/dade/.ssh/id_ed25519-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_7.6p1 Ubuntu-4
debug1: Remote protocol version 2.0, remote software version OpenSSH_7.4p1 Debian-10+deb9u3
debug1: match: OpenSSH_7.4p1 Debian-10+deb9u3 pat OpenSSH* compat 0x04000000
debug1: Authenticating to dbvideo.local:22 as 'dade'
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: algorithm: curve25519-sha256
debug1: kex: host key algorithm: ecdsa-sha2-nistp256
debug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
debug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server host key: ecdsa-sha2-nistp256 SHA256:u8YPqCfuiesEjFwxyKsuB7ySDZ5QlvbU8Q6/lVaQwJw
debug1: Host 'dbvideo.local' is known and matches the ECDSA host key.
debug1: Found key in /home/dade/.ssh/known_hosts:1
debug1: rekey after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: rekey after 134217728 blocks
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_input_ext_info: server-sig-algs=<ssh-ed25519,ssh-rsa,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521>
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: publickey
debug1: Trying private key: /home/dade/.ssh/id_rsa
debug1: Trying private key: /home/dade/.ssh/id_dsa
debug1: Trying private key: /home/dade/.ssh/id_ecdsa
debug1: Trying private key: /home/dade/.ssh/id_ed25519
debug1: Next authentication method: password
dade@dbvideo.local's password: 
debug1: Authentication succeeded (password).
Authenticated to dbvideo.local ([192.168.178.169]:22).
debug1: channel 0: new [client-session]
debug1: Requesting no-more-sessions@openssh.com
debug1: Entering interactive session.
debug1: pledge: network
debug1: client_input_global_request: rtype hostkeys-00@openssh.com want_reply 0
debug1: Sending environment.
debug1: Sending env LANG = it_IT.UTF-8
debug1: Sending subsystem: sftp
subsystem request failed on channel 0
Connection closed
da un output unico, da autenticazione con successo, e la chiude direttamente
Buona Community a tutti !!
Avatar utente
Filoteo
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 1315
Iscrizione: venerdì 28 agosto 2015, 9:38
Desktop: Gnome
Distribuzione: Arch Linux

Re: Problema accesso server SFTP

Messaggio da Filoteo »

Codice: Seleziona tutto

Subsystem sftp /usr/lib/openssh/sftp-server
nel mio caso è decommentato e dal momento che non ho fatto modifiche evidentemente deve essere così.

Probabile che commentandolo come hai fatto disattivi il server.
Avatar utente
dade-bian
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 597
Iscrizione: sabato 17 dicembre 2011, 12:08
Desktop: Gnome Shell
Distribuzione: Ubuntu/Debian
Sesso: Maschile
Località: Milano

[Risolto]Re: Problema accesso server SFTP

Messaggio da dade-bian »

:birra: :birra: andato :birra: :birra: grazie a tutti
ipotizzo che faceva capricci in quanto era doppio valore (commentato e non)
pensavo la riga commentata veniva ignorata dal sistema leggente, non si finisce mai di imparare
ancora grazie :birra:
Ultima modifica di dade-bian il martedì 10 luglio 2018, 20:14, modificato 1 volta in totale.
Buona Community a tutti !!
Scrivi risposta

Ritorna a “Ubuntu su server”

Chi c’è in linea

Visualizzano questa sezione: 0 utenti iscritti e 3 ospiti