root@dtrmult397419:~# service ssh restart
root@dtrmult397419:~# servisse ssh status
ssh.service - OpenBSD Secure Shell server
Loaded: loaded (/lib/systemd/system/ssh.service; enable; vendor preset: enable)
Active: active (running) since sex 2017-05-19 11:09:30 BRT; 6s ago
Main PID: 2857 (sshd)
Tasks: 1 (limit: 4915)
CGroup: /system.slice/ssh.service
2857 /usr/sbin/sshd -D
mai 11:09:30 dtrmult397419 systemd[1]: Starting OpenBSD Secure Shell server...
mai 11:09:30 dtrmult397419 sshd[2857]: Server listening on 172.16.0.66 port
2928.
mai 11:09:30 dtrmult397419 systemd[1]: Started OpenBSD Secure Shell server...
Glênio Côrtes Himmen
Secretaria Municipal de Mobilidade e Transporte de Aparecida
[email protected]
-----Mensagem original-----
De: [email protected]
[mailto:[email protected]] Em nome de C de-Avillez
Enviada em: quinta-feira, 18 de maio de 2017 20:50
Para: [email protected]
Assunto: Re: [Ubuntu-BR] RES: RES: Serviço SSH!
On Thu, 18 May 2017 10:25:20 -0300
Glênio Côrtes Himmen <[email protected]> wrote:
> Ubuntu Desktop 16.10 i386
>
> lsb_release -r (16.10)
> dpkg -l \*openssh\* | grep ^ii (openssh-client 1:7.3p1-1ubuntu0.1
> i386 secure shell (SSH) client, for secure access to remote machines)
> (openssh-server 1:7.3p1-1ubuntu0.1 i386 secure shell (SSH) server, for
> secure access from remote machines) (openssh-sftp-server
> 1:7.3p1-1ubuntu0.1 i386 secure shell (SSH) sftp server module, for
> SFTP access from remote machines)
De forma geral, é melhor mostrar a saída do terminal, sem edição.
> journalctl
> _SYSTEMD_UNIT=ssh.service (Este comando não retorna nenhuma
> informação)
> O arquivo sshd_config foi alterado, abaixo as alterações.
>
> Port 2928
> ListenAddress 172.16.0.96
É este teu IP address? para o port 2928, há algum programa a usá-lo? E aonde
está sshd_config -- /etc/ssh?
> PermitRootLogin no
> AllowUsers administrador
>
> O arquivo ssh_config foi alterado, segue abaixo as alterações.
> CheckHostIP no
> AddressFamily any
> ConnectTimeout 300
ssh_config contém a configuração default para o *cliente*, não o servidor.
Tente, também, executar o sshd no terminal:
sudo sshd -D -d
Cheers,
..C..
--
Mais sobre o Ubuntu em português: http://www.ubuntu-br.org/comece
Lista de discussão Ubuntu Brasil
Histórico, descadastramento e outras opções:
https://lists.ubuntu.com/mailman/listinfo/ubuntu-br