|
0 / 0 / 0
Регистрация: 20.07.2018
Сообщений: 1
|
|
Цель - подключиться через powershell по ssh протоколу к linux серверу, ошибка - no matching key exchange method found21.07.2018, 18:52. Показов 7429. Ответов 2
Здравствуйте, меня зовут Екатерина.
Мне нужна помощь в решении задачи: подключиться через powershell по ssh протоколу к linux серверу. Подключение через Putty к этому серверу работает через логин,пароль авторизацию, но необходимо подключиться через PowerShell. Я не знаю PowerShell и столкнулась со списком проблем, 100 сайтов с похожими ошибками не помогло. Машина с которой я пытаюсь подключится: ОС Win 10, PowerShell 6.1.0, OpenSSH 7.5 При выполнении команды $session = New-PSSession -HostName **** -UserName *** Выдает ошибку: New-PSSession : [****] The background process reported an error with the following message: The SSH client session has ended with error message: Unable to negotiate with ***** port 22: no matching key exchange method found. Their offer: ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1. At line:1 char:12 + $session = New-PSSession -HostName **** -UserName ***** + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~ + CategoryInfo : OpenError: (System.Manageme....RemoteRunspace:Remot eRunspace) [New-PSSession], PSRemotingTransportException + FullyQualifiedErrorId : 2100,PSSessionOpenFailed Еще команда:ssh -l пользователь IpХоста Unable to negotiate with IpХоста port 22: no matching key exchange method found. Their offer: ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1 Пробовала менять config файл папке пользователя (C:\Users\osadchikh\.ssh) на Win машине, программа написала bad ssh2 такие строки добавляла: MACs hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-ripemd160 HostkeyAlgorithms ssh-dss,ssh-rsa KexAlgorithms +diffie-hellman-group1-sha1 После ошибки строки закомментировала Результат отладки подключения: (команда ssh -vv "Пользователь"@"ipХоста") OpenSSH_7.5p1, without OpenSSL debug1: Reading configuration data C:\\Users\\osadchikh/.ssh/config debug1: C:\\Users\\osadchikh/.ssh/config line 1: Applying options for "ipХоста" debug2: resolving "ipХоста" port 22 debug2: ssh_connect_direct: needpriv 0 debug1: Connecting to "ipХоста" ["ipХоста"] port 22. debug1: Connection established. debug1: key_load_public: No such file or directory debug1: identity file C:\\Users\\osadchikh/.ssh/id_rsa type -1 debug1: key_load_public: No such file or directory debug1: identity file C:\\Users\\osadchikh/.ssh/id_rsa-cert type -1 debug1: key_load_public: No such file or directory debug1: identity file C:\\Users\\osadchikh/.ssh/id_dsa type -1 debug1: key_load_public: No such file or directory debug1: identity file C:\\Users\\osadchikh/.ssh/id_dsa-cert type -1 debug1: identity file C:\\Users\\osadchikh/.ssh/id_ed25519 type 3 debug1: key_load_public: No such file or directory debug1: identity file C:\\Users\\osadchikh/.ssh/id_ed25519-cert type -1 debug1: Local version string SSH-2.0-OpenSSH_7.5 debug1: Remote protocol version 2.0, remote software version OpenSSH_6.0p1 Debian-4+deb7u2 debug1: match: OpenSSH_6.0p1 Debian-4+deb7u2 pat OpenSSH* compat 0x04000000 debug2: fd 3 setting O_NONBLOCK debug1: Authenticating to "ipХоста":22 as '"Пользователь"' debug1: SSH2_MSG_KEXINIT sent debug1: SSH2_MSG_KEXINIT received debug2: local client KEXINIT proposal debug2: KEX algorithms: curve25519-sha256,curve25519-sha256@libssh.org,ext-info-c debug2: host key algorithms: ssh-ed25519-cert-v01@openssh.com,ssh-ed25519 debug2: ciphers ctos: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr debug2: ciphers stoc: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr debug2: MACs ctos: umac-64-etm@openssh.com,umac-128-etm...28@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1 debug2: MACs stoc: umac-64-etm@openssh.com,umac-128-etm...28@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1 debug2: compression ctos: none debug2: compression stoc: none debug2: languages ctos: debug2: languages stoc: debug2: first_kex_follows 0 debug2: reserved 0 debug2: peer server KEXINIT proposal debug2: KEX algorithms: ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1 debug2: host key algorithms: ssh-rsa,ssh-dss debug2: ciphers ctos: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se debug2: ciphers stoc: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se debug2: MACs ctos: hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-sha2-256,hmac-sha2-256-96,hmac-sha2-512,hmac-sha2-512-96,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96 debug2: MACs stoc: hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-sha2-256,hmac-sha2-256-96,hmac-sha2-512,hmac-sha2-512-96,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96 debug2: compression ctos: none,zlib@openssh.com debug2: compression stoc: none,zlib@openssh.com debug2: languages ctos: debug2: languages stoc: debug2: first_kex_follows 0 debug2: reserved 0 debug1: kex: algorithm: (no match) Unable to negotiate with "ipХоста" port 22: no matching key exchange method found. Their offer: ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
0
|
|
| 21.07.2018, 18:52 | |
|
Ответы с готовыми решениями:
2
Не могу подключиться к серверу по FTP ошибка Превышено время ожидания соединения, Ошибка:Невозможно подключиться к серверу Как подключиться к серверу по протоколу SSH2 ?
|
|
505 / 158 / 49
Регистрация: 27.02.2016
Сообщений: 818
|
||||||
| 21.07.2018, 22:53 | ||||||
|
не пробовали установить posh-ssh
https://www.powershellgallery.... -SSH/2.0.2 http://www.powershellmagazine.... ll-module/ я не пользуюсь сам но вот заработало сразу / с клиетна Windows 3.1 (шучу) Windows 8.1
0
|
||||||
|
6685 / 2277 / 347
Регистрация: 10.12.2013
Сообщений: 7,858
|
|
| 22.07.2018, 11:02 | |
|
последняя версия openssh для windows в репозитории - это 7.7, может попробовать её?
С учётом использования символьной ссылки, как в статье https://docs.microsoft.com/ru-... wershell-6
0
|
|
| 22.07.2018, 11:02 | |
|
Помогаю со студенческими работами здесь
3
При запуске freeradius с ldap и Berkeley DB выдаёт "No matching key/data pair found" SSH клиент. Как преодолеть ошибку "Failed to negotiate key exchange algorithm."? Доступ к Ubuntu по протоколу SSH через Windows машину При попытке подключиться через TSQLConnection - ошибка "sqlite3.dll not found" Доступ к серверу через SSH Искать еще темы с ответами Или воспользуйтесь поиском по форуму: |
|
Новые блоги и статьи
|
|||
|
SDL3 для Web (WebAssembly): Обработчик клика мыши в браузере ПК и касания экрана в браузере на мобильном устройстве
8Observer8 02.02.2026
Содержание блога
Для начала пошагово создадим рабочий пример для подготовки к экспериментам в браузере ПК и в браузере мобильного устройства. Потом напишем обработчик клика мыши и обработчик. . .
|
Философия технологии
iceja 01.02.2026
На мой взгляд у человека в технических проектах остается роль генерального директора. Все остальное нейронки делают уже лучше человека. Они не могут нести предпринимательские риски, не могут. . .
|
SDL3 для Web (WebAssembly): Вывод текста со шрифтом TTF с помощью SDL3_ttf
8Observer8 01.02.2026
Содержание блога
В этой пошаговой инструкции создадим с нуля веб-приложение, которое выводит текст в окне браузера. Запустим на Android на локальном сервере. Загрузим Release на бесплатный. . .
|
SDL3 для Web (WebAssembly): Сборка C/C++ проекта из консоли
8Observer8 30.01.2026
Содержание блога
Если вы откроете примеры для начинающих на официальном репозитории SDL3 в папке: examples, то вы увидите, что все примеры используют следующие четыре обязательные функции, а. . .
|
|
SDL3 для Web (WebAssembly): Установка Emscripten SDK (emsdk) и CMake для сборки C и C++ приложений в Wasm
8Observer8 30.01.2026
Содержание блога
Для того чтобы скачать Emscripten SDK (emsdk) необходимо сначало скачать и уставить Git: Install for Windows. Следуйте стандартной процедуре установки Git через установщик. . . .
|
SDL3 для Android: Подключение Box2D v3, физика и отрисовка коллайдеров
8Observer8 29.01.2026
Содержание блога
Box2D - это библиотека для 2D физики для анимаций и игр. С её помощью можно определять были ли коллизии между конкретными объектами. Версия v3 была полностью переписана на Си, в. . .
|
Инструменты COM: Сохранение данный из VARIANT в файл и загрузка из файла в VARIANT
bedvit 28.01.2026
Сохранение базовых типов COM и массивов (одномерных или двухмерных) любой вложенности (деревья) в файл, с возможностью выбора алгоритмов сжатия и шифрования.
Часть библиотеки BedvitCOM
Использованы. . .
|
SDL3 для Android: Загрузка PNG с альфа-каналом с помощью SDL_LoadPNG (без SDL3_image)
8Observer8 28.01.2026
Содержание блога
SDL3 имеет собственные средства для загрузки и отображения PNG-файлов с альфа-каналом и базовой работы с ними. В этой инструкции используется функция SDL_LoadPNG(), которая. . .
|