LINUX.ORG.RU

Сообщения LeShen

 

Подключение по ssh через интернет

Доброго времени суток хочу научиться как подключать через интернет два компьютера используя ssh сервер и клиент на ОС Debian10.И что нужно еще настраивать помимо ssh, подскажите пожалуйста сайты. Некоторые настройки я находил на сайтах и пытался применить но ни чего не получилось, их я выложу ниже.Заранее благодарю за помощь.

Наcтройки interfaces:

# interfaces(5) file used by ifup(8) and ifdown(8)

# The loopback network interface
auto lo
iface lo inet loopback

allow-hotplug eth0                    #автоматически выполнять перезапуск интерфейса при его падении
auto eth0                                #поднимать интерфейс автоматически при старте системы
iface eth0 inet dhcp                 #получить адрес по DHCP

auto eth0:1
iface eth0:1 inet dhcp

auto eth0:1
iface eth0:1 inet dhcp

allow-hotplug eth1
auto eth1
iface eth1 inet static
        address 192.168.0.1
        netmask 255.255.255.0
        gateway 192.168.0.254
        dns-nameservers 192.168.0.254 8.8.8.8

pre-up ifconfig eth0 hw ether xx:xx:xx:xx:xx:xx

# The primary network interface
Настройки sshd_config:
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 1m
PermitRootLogin yes
#StrictModes yes
#MaxAuthTries 6
#MaxSessions 10
****

#PubkeyAuthentication yes

****
# To disable tunneled clear text passwords, change to no here!
PasswordAuthentication yes
#PermitEmptyPasswords no
Настройки ssh_config:
Host * - тут было без изменений. 

#   ForwardAgent yes 
#     ForwardX11 yes 
#   ForwardX11Trusted 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/id_rsa 
#   IdentityFile ~/.ssh/id_dsa 
#   IdentityFile ~/.ssh/id_ecdsa 
#   IdentityFile ~/.ssh/id_ed25519 
Port 22** - тут свой протокол сделал 
#    Protocol 2 
#   Ciphers aes128-ctr,aes192-ctr,aes256-ctr,aes128-cbc,3des-cbc
#   MACs hmac-md5,hmac-sha1,umac-64@openssh.com 
#   EscapeChar ~ 
#   Tunnel no 
#   TunnelDevice any:any 
#   PermitLocalCommand no 
#   VisualHostKey no 
#   ProxyCommand ssh -q -W %h:%p gateway.example.com 
#   RekeyLimit 1G 1h 

    SendEnv LANG LC_* 

    HashKnownHosts yes 

    GSSAPIAuthentication yes 

При вводе => systemctl status dhclient.

Выдаёт => System has not been booted with systemd as init system (PID 1). Can't operate.

Failed to connect to bus: Узел выключен

Не знаю нужен ли dhcp но на сайтах пишут что нужен.

 , ,

LeShen
()

Установка, настройка и подключение RDP клиента и сервера на стационарном ПК Debian 10 в локальной сети и через интернет.

Доброго времени суток, я новичок и хочу разобраться и научиться как устанавливать и настраивать RDP клиент и сервер на свой пк и подключаться с debian 10 на debian 10 в локальной сети и через интернет используя ПО Remmina. Как это делать на Windows тоже хочу но в приоритете первый пункт.Если есть проверенный вариант который работает буду благодарен за направление.

 , , , ,

LeShen
()

RSS подписка на новые темы