Имеется 2 машины (обе ноуты одной фирмы).
Пусть будут сервер и клиент в данном кейсе.
Сервер
dja@dja-work:~$ фе dja@dja-work MMMMMMMMMMMMMMMMMMMMMMMMMmds+. OS: Mint 19.2 tina MMm----::-://////////////oymNMd+` Kernel: x86_64 Linux 4.15.0-58-generic MMd /++ -sNMd: Uptime: 1d 12h 3m MMNso/` dMM `.::-. .-::.` .hMN: Packages: 2433 ddddMMh dMM :hNMNMNhNMNMNh: `NMm Shell: bash NMm dMM .NMN/-+MMM+-/NMN` dMM Resolution: 3200x1080 NMm dMM -MMm `MMM dMM. dMM DE: GNOME NMm dMM -MMm `MMM dMM. dMM WM: Metacity (Marco) NMm dMM .mmd `mmm yMM. dMM GTK Theme: Mint-Y [GTK2/3] NMm dMM` ..` ... ydm. dMM Icon Theme: Mint-Y hMM- +MMd/-------...-:sdds dMM Font: Monospace 10 -NMm- :hNMNNNmdddddddddy/` dMM CPU: Intel Core i7-4710HQ @ 8x 3.5GHz [44.0°C] -dMNs-``-::::-------.`` dMM GPU: GeForce GTX 860M `/dMNmy+/:-------------:/yMMM RAM: 3458MiB / 11451MiB ./ydNMMMMMMMMMMMMMMMMMMMMM \.MMMMMMMMMMMMMMMMMMM
dja@dja-work:~$ inxi -Fxz System: Host: dja-work Kernel: 4.15.0-58-generic x86_64 bits: 64 compiler: gcc v: 7.4.0 Desktop: MATE 1.22.0 Distro: Linux Mint 19.2 Tina base: Ubuntu 18.04 bionic Machine: Type: Laptop System: ASUSTeK product: N551JM v: 1.0 serial: <filter> Mobo: ASUSTeK model: N551JM v: 1.0 serial: <filter> UEFI: American Megatrends v: N551JM.204 date: 10/06/2014 Battery: ID-1: BAT0 charge: 31.5 Wh condition: 33.2/56.2 Wh (59%) model: ASUSTeK N551-52 status: Charging CPU: Topology: Quad Core model: Intel Core i7-4710HQ bits: 64 type: MT MCP arch: Haswell rev: 3 L2 cache: 6144 KiB flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 39907 Speed: 1014 MHz min/max: 800/3500 MHz Core speeds (MHz): 1: 1610 2: 1878 3: 1940 4: 1961 5: 1724 6: 1606 7: 1860 8: 1669 Graphics: Device-1: Intel 4th Gen Core Processor Integrated Graphics vendor: ASUSTeK driver: i915 v: kernel bus ID: 00:02.0 Device-2: NVIDIA GM107M [GeForce GTX 860M] vendor: ASUSTeK driver: nvidia v: 390.116 bus ID: 01:00.0 Display: server: X.Org 1.19.6 driver: modesetting,nvidia unloaded: fbdev,nouveau,vesa resolution: 1920x1080~60Hz, 1280x1024~60Hz OpenGL: renderer: N/A v: N/A direct render: N/A Audio: Device-1: Intel Xeon E3-1200 v3/4th Gen Core Processor HD Audio driver: snd_hda_intel v: kernel bus ID: 00:03.0 Device-2: Intel 8 Series/C220 Series High Definition Audio vendor: ASUSTeK driver: snd_hda_intel v: kernel bus ID: 00:1b.0 Sound Server: ALSA v: k4.15.0-58-generic Network: Device-1: Qualcomm Atheros AR9462 Wireless Network Adapter vendor: AzureWave driver: ath9k v: kernel port: e000 bus ID: 04:00.0 IF: wlp4s0 state: up mac: <filter> Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: ASUSTeK driver: r8169 v: 2.3LK-NAPI port: d000 bus ID: 05:00.1 IF: enp5s0f1 state: up speed: 1000 Mbps duplex: full mac: <filter> Device-3: IMC Networks Atheros AR3012 Bluetooth type: USB driver: btusb bus ID: 3-5:4 Drives: Local Storage: total: 465.76 GiB used: 274.05 GiB (58.8%) ID-1: /dev/sda vendor: Seagate model: ST500LT012-1DG142 size: 465.76 GiB Partition: ID-1: / size: 19.29 GiB used: 10.13 GiB (52.5%) fs: ext4 dev: /dev/sda2 ID-2: /home size: 9.78 GiB used: 5.84 GiB (59.7%) fs: ext4 dev: /dev/sda4 Sensors: System Temperatures: cpu: 44.0 C mobo: N/A Fan Speeds (RPM): cpu: 1800 Info: Processes: 288 Uptime: 1d 12h 05m Memory: 11.18 GiB used: 3.64 GiB (32.5%) Init: systemd runlevel: 5 Compilers: gcc: 7.4.0 Shell: bash v: 4.4.20 inxi: 3.0.32 dja@dja-work:~$
/etc/ssh/sshd_config
Код: Выделить всё
dja@dja-work:~$ cat /etc/ssh/sshd_config
# $OpenBSD: sshd_config,v 1.101 2017/03/14 07:19:07 djm 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 2203
#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 no
#PermitTTY yes
PrintMotd no
#PrintLastLog yes
#TCPKeepAlive yes
#UseLogin no
#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
# Example of overriding settings on a per-user basis
#Match User anoncvs
# X11Forwarding no
# AllowTcpForwarding no
# PermitTTY no
# ForceCommand cvs server
dja@dja-laptop:~$ фе dja@dja-laptop MMMMMMMMMMMMMMMMMMMMMMMMMmds+. OS: Mint 19.2 tina MMm----::-://////////////oymNMd+` Kernel: x86_64 Linux 4.15.0-58-generic MMd /++ -sNMd: Uptime: 3h 35m MMNso/` dMM `.::-. .-::.` .hMN: Packages: 2449 ddddMMh dMM :hNMNMNhNMNMNh: `NMm Shell: bash NMm dMM .NMN/-+MMM+-/NMN` dMM Resolution: 3200x1080 NMm dMM -MMm `MMM dMM. dMM DE: MATE 1.22.0 NMm dMM -MMm `MMM dMM. dMM WM: Metacity (Marco) NMm dMM .mmd `mmm yMM. dMM GTK Theme: 'Mint-X-Teal' [GTK2/3] NMm dMM` ..` ... ydm. dMM Icon Theme: gnome-noble hMM- +MMd/-------...-:sdds dMM Font: Ubuntu 12 -NMm- :hNMNNNmdddddddddy/` dMM CPU: Intel Core i3-6006U @ 4x 2GHz [45.0°C] -dMNs-``-::::-------.`` dMM GPU: GeForce 920MX `/dMNmy+/:-------------:/yMMM RAM: 1943MiB / 7858MiB ./ydNMMMMMMMMMMMMMMMMMMMMM \.MMMMMMMMMMMMMMMMMMM
dja@dja-laptop:~$ inxi -Fxz System: Host: dja-laptop Kernel: 4.15.0-58-generic x86_64 bits: 64 compiler: gcc v: 7.4.0 Desktop: MATE 1.22.0 Distro: Linux Mint 19.2 Tina base: Ubuntu 18.04 bionic Machine: Type: Laptop System: ASUSTeK product: X541UVK v: 1.0 serial: <filter> Mobo: ASUSTeK model: X541UVK v: 1.0 serial: <filter> UEFI: American Megatrends v: X541UVK.308 date: 01/30/2018 Battery: ID-1: BAT0 charge: 29.9 Wh condition: 29.9/34.6 Wh (86%) model: ASUSTeK ASUS Battery status: Not charging CPU: Topology: Dual Core model: Intel Core i3-6006U bits: 64 type: MT MCP arch: Skylake rev: 3 L2 cache: 3072 KiB flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 15936 Speed: 500 MHz min/max: 400/2000 MHz Core speeds (MHz): 1: 500 2: 500 3: 500 4: 500 Graphics: Device-1: Intel Skylake GT2 [HD Graphics 520] vendor: ASUSTeK driver: i915 v: kernel bus ID: 00:02.0 Device-2: NVIDIA GM108M [GeForce 920MX] vendor: ASUSTeK driver: nvidia v: 390.116 bus ID: 01:00.0 Display: x11 server: X.Org 1.19.6 driver: modesetting,nvidia unloaded: fbdev,nouveau,vesa resolution: 1920x1080~60Hz, 1280x1024~60Hz OpenGL: renderer: GeForce 920MX/PCIe/SSE2 v: 4.6.0 NVIDIA 390.116 direct render: Yes Audio: Device-1: Intel Sunrise Point-LP HD Audio vendor: ASUSTeK driver: snd_hda_intel v: kernel bus ID: 00:1f.3 Sound Server: ALSA v: k4.15.0-58-generic Network: Device-1: Realtek RTL810xE PCI Express Fast Ethernet vendor: ASUSTeK driver: r8169 v: 2.3LK-NAPI port: d000 bus ID: 02:00.2 IF: enp2s0f2 state: up speed: 100 Mbps duplex: full mac: <filter> Device-2: Realtek RTL8723BE PCIe Wireless Network Adapter vendor: AzureWave driver: rtl8723be v: kernel port: c000 bus ID: 03:00.0 IF: wlp3s0 state: up mac: <filter> IF-ID-1: ppp0 state: unknown speed: N/A duplex: N/A mac: N/A Drives: Local Storage: total: 931.51 GiB used: 602.79 GiB (64.7%) ID-1: /dev/sda vendor: Seagate model: ST1000LM035-1RK172 size: 931.51 GiB Partition: ID-1: / size: 47.81 GiB used: 9.07 GiB (19.0%) fs: ext4 dev: /dev/sda2 ID-2: /home size: 191.57 GiB used: 34.22 GiB (17.9%) fs: ext4 dev: /dev/sda4 ID-3: swap-1 size: 8.79 GiB used: 0 KiB (0.0%) fs: swap dev: /dev/sda3 Sensors: System Temperatures: cpu: 43.0 C mobo: N/A gpu: nvidia temp: 43 C Fan Speeds (RPM): N/A Info: Processes: 239 Uptime: 3h 35m Memory: 7.67 GiB used: 2.08 GiB (27.0%) Init: systemd runlevel: 5 Compilers: gcc: 7.4.0 Shell: bash v: 4.4.20 inxi: 3.0.32 dja@dja-laptop:~$
/etc/ssh/ssh_config
Код: Выделить всё
dja@dja-laptop:~$ cat /etc/ssh/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
ForwardAgent yes
# ForwardX11 no
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
Код: Выделить всё
ssh -XC dja@XXX.XXX.XXX.XXX -p 2203 xed
Сам же ssh -vvv содержит кучу игноров (но при этом команды выполняет)
debug3: Ignored env LS_COLORS debug3: Ignored env LESSCLOSE debug1: Sending env LANG = ru_RU.UTF-8 debug2: channel 0: request env confirm 0 debug3: send packet: type 98 debug3: Ignored env GDM_LANG debug3: Ignored env DISPLAY debug3: Ignored env COMPIZ_CONFIG_PROFILE debug3: Ignored env GTK_OVERLAY_SCROLLING debug3: Ignored env COLORTERM debug3: Ignored env XDG_VTNR debug3: Ignored env SSH_AUTH_SOCK debug3: Ignored env MANDATORY_PATH debug3: Ignored env XDG_SESSION_ID debug3: Ignored env XDG_GREETER_DATA_DIR debug3: Ignored env USER debug3: Ignored env DESKTOP_SESSION debug3: Ignored env DEFAULTS_PATH debug3: Ignored env QT_QPA_PLATFORMTHEME debug3: Ignored env PWD debug3: Ignored env HOME debug3: Ignored env SSH_AGENT_PID debug3: Ignored env QT_ACCESSIBILITY debug3: Ignored env XDG_SESSION_TYPE debug3: Ignored env XDG_DATA_DIRS debug3: Ignored env MATE_DESKTOP_SESSION_ID debug3: Ignored env XDG_SESSION_DESKTOP debug3: Ignored env QT_SCALE_FACTOR debug3: Ignored env GTK_MODULES debug3: Ignored env CLUTTER_BACKEND debug3: Ignored env TERM debug3: Ignored env SHELL debug3: Ignored env VTE_VERSION debug3: Ignored env XDG_SEAT_PATH debug3: Ignored env XDG_CURRENT_DESKTOP debug3: Ignored env GPG_AGENT_INFO debug3: Ignored env XDG_SEAT debug3: Ignored env SHLVL debug3: Ignored env LANGUAGE debug3: Ignored env WINDOWID debug3: Ignored env GDMSESSION debug3: Ignored env LOGNAME debug3: Ignored env DBUS_SESSION_BUS_ADDRESS debug3: Ignored env XDG_RUNTIME_DIR debug3: Ignored env XAUTHORITY debug3: Ignored env XDG_SESSION_PATH debug3: Ignored env QT_AUTO_SCREEN_SCALE_FACTOR debug3: Ignored env XDG_CONFIG_DIRS debug3: Ignored env PATH debug3: Ignored env SESSION_MANAGER debug3: Ignored env LESSOPEN debug3: Ignored env _
vnc через ssh работает нормально. (remmina).