Имя: Пароль:
IT
Админ
Не получается скачать файл с sftp
0 John83
 
16.07.14
09:53
В cmd забиваю такую строку
"C:\Program Files (x86)\WinSCP\winscp.com" /console /command "option batch abort" "open redius.sbp.ru@redius.spb.ru" "get /htdocs/.exchange/orders.csv D:\temp\" "close" "exit"
В итоге выдает "batch abort".
Winscp установлен, профиль настроен - файл руками скачивается без проблем.
Может кто подскажет, где искать проблему?
В итоге надо будет эту процедуру делать в 1С.
1 John83
 
16.07.14
09:54
в лог запись идет, но тоже непонятно, что там не так
2 John83
 
16.07.14
09:54
. 2014-07-16 09:52:00.983 --------------------------------------------------------------------------
. 2014-07-16 09:52:00.983 WinSCP Версия 5.5.3 (сборка 4214) (OS 6.1.7601 Service Pack 1 - Windows 7 Professional)
. 2014-07-16 09:52:00.983 Configuration: HKEY_CURRENT_USER\Software\Martin Prikryl\WinSCP 2\
. 2014-07-16 09:52:00.983 Local account: REDIUS\telnov
. 2014-07-16 09:52:00.983 Working directory: C:\Users\telnov
. 2014-07-16 09:52:00.983 Process ID: 4236
. 2014-07-16 09:52:00.983 Command-line: "C:\Program Files (x86)\WinSCP\WinSCP.exe" /console=553 /consoleinstance=_1992_805 "/console" "/command" "option batch abort" "open redius.sbp.ru@redius.spb.ru" "get /htdocs/.exchange/orders.csv D:\temp\" "close" "exit"
. 2014-07-16 09:52:00.983 Time zone: Current: GMT+4 (Азербайджанское время (зима)), No DST
. 2014-07-16 09:52:00.983 Warning: System option "Automatically adjust clock for Daylight Saving Time" is disabled, timestamps will not be represented correctly
. 2014-07-16 09:52:00.983 Login time: 16 Июль 2014 г. 9:52:00
. 2014-07-16 09:52:00.983 --------------------------------------------------------------------------
. 2014-07-16 09:52:00.983 Script: Retrospectively logging previous script records:
> 2014-07-16 09:52:00.983 Script: option batch abort
< 2014-07-16 09:52:00.983 Script: batch           abort    
> 2014-07-16 09:52:00.983 Script: open redius.sbp.ru@redius.spb.ru
. 2014-07-16 09:52:00.983 --------------------------------------------------------------------------
. 2014-07-16 09:52:00.983 Session name: redius.sbp.ru@redius.spb.ru (Modified site)
. 2014-07-16 09:52:00.983 Host name: redius.spb.ru (Port: 22)
. 2014-07-16 09:52:00.983 User name: redius.sbp.ru (Password: No, Key file: No)
. 2014-07-16 09:52:00.983 Tunnel: No
. 2014-07-16 09:52:00.983 Transfer Protocol: SFTP (SCP)
. 2014-07-16 09:52:00.983 Ping type: -, Ping interval: 30 sec; Timeout: 15 sec
. 2014-07-16 09:52:00.983 Proxy: none
. 2014-07-16 09:52:00.983 Send buffer: 262144
. 2014-07-16 09:52:00.983 SSH protocol version: 2; Compression: No
. 2014-07-16 09:52:00.983 Bypass authentication: No
. 2014-07-16 09:52:00.983 Try agent: Yes; Agent forwarding: No; TIS/CryptoCard: No; KI: Yes; GSSAPI: No
. 2014-07-16 09:52:00.983 Ciphers: aes,blowfish,3des,WARN,arcfour,des; Ssh2DES: No
. 2014-07-16 09:52:00.983 SSH Bugs: A,A,A,A,A,A,A,A,A,A
. 2014-07-16 09:52:00.983 Simple channel: Yes
. 2014-07-16 09:52:00.983 Return code variable: Autodetect; Lookup user groups: A
. 2014-07-16 09:52:00.983 Shell: default
. 2014-07-16 09:52:00.983 EOL: 0, UTF: 2
. 2014-07-16 09:52:00.983 Clear aliases: Yes, Unset nat.vars: Yes, Resolve symlinks: Yes
. 2014-07-16 09:52:00.983 LS: ls -la, Ign LS warn: Yes, Scp1 Comp: No
. 2014-07-16 09:52:00.983 SFTP Bugs: A,A
. 2014-07-16 09:52:00.983 SFTP Server: default
. 2014-07-16 09:52:00.983 Local directory: default, Remote directory: home, Update: Yes, Cache: Yes
. 2014-07-16 09:52:00.983 Cache directory changes: Yes, Permanent: Yes
. 2014-07-16 09:52:00.983 DST mode: 1; Timezone offset: 0h 0m
. 2014-07-16 09:52:00.983 --------------------------------------------------------------------------
. 2014-07-16 09:52:00.983 Looking up host "redius.spb.ru"
. 2014-07-16 09:52:00.998 Connecting to 84.204.252.3 port 22
. 2014-07-16 09:52:01.002 Waiting for the server to continue with the initialization
. 2014-07-16 09:52:01.002 Detected network event
. 2014-07-16 09:52:01.019 Detected network event
. 2014-07-16 09:52:01.020 Server version: SSH-2.0-OpenSSH_6.1_hpn13v11 FreeBSD-20120901
. 2014-07-16 09:52:01.020 Using SSH protocol version 2
. 2014-07-16 09:52:01.020 We claim version: SSH-2.0-WinSCP_release_5.5.3
. 2014-07-16 09:52:01.020 Waiting for the server to continue with the initialization
. 2014-07-16 09:52:01.026 Detected network event
. 2014-07-16 09:52:01.026 Doing Diffie-Hellman group exchange
. 2014-07-16 09:52:01.026 Waiting for the server to continue with the initialization
. 2014-07-16 09:52:01.142 Detected network event
. 2014-07-16 09:52:01.143 Doing Diffie-Hellman key exchange with hash SHA-256
. 2014-07-16 09:52:01.377 Waiting for the server to continue with the initialization
. 2014-07-16 09:52:01.400 Detected network event
. 2014-07-16 09:52:01.651 Verifying host key rsa2 0x23,0xb513b870b15e1d22 e1667a7047dd6896 237f55154c2d8e1d c3edaffd526cb15b 5c362c6cb42d5dab 036fb9f1333e6d94 a1e5886da54455dd e122ed38aa088b91 2816b91ebbc5dfd8 2df7f414077eb488 02d4379b03fd4b39 b444f4b8dcb94678 e1c4960fb8caa9a4 69126d42424e17f8 c0b3599cbba5dd47 4a211234744de70d 0225ebed7b3a8a18 f53f0b43f1148533 8d57aaada251e5b7 e8af5cd4f2f58bb8 7248bade5aaf70bf ad1d877d6961347b 5673654273f96dc0 8ed88bff6e7b2fd2 5c911e5d7472012e 36523a5f2c161a77 a7acc6e15dbafaaa 55673b9dc00ac768 41433ee664e4c77d 0d8f454f0969ecf7 91a70c88d020f0ab a67269d1cb8c42e1  with fingerprint ssh-rsa 2048 29:c7:3b:e8:70:46:b4:83:dd:06:76:0d:85:22:af:37
. 2014-07-16 09:52:01.651 Asking user:
. 2014-07-16 09:52:01.651 **Продолжить подключение к неизвестному серверу и добавить его ключ в кэш?**
. 2014-07-16 09:52:01.651
. 2014-07-16 09:52:01.651 Ключ хоста сервера не найден в кэше. Нельзя гарантировать, что это тот самый сервер, который вам нужен.
. 2014-07-16 09:52:01.651
. 2014-07-16 09:52:01.651 Отпечаток ключа сервера rsa2:
. 2014-07-16 09:52:01.651 ssh-rsa 2048 29:c7:3b:e8:70:46:b4:83:dd:06:76:0d:85:22:af:37
. 2014-07-16 09:52:01.651
. 2014-07-16 09:52:01.651 Если вы доверяете этому хосту, нажмите «Да». Для подключения без добавления ключа хоста в кэш нажмите «Нет». Чтобы прервать подключение, нажмите «Отмена». ()
. 2014-07-16 09:52:01.651 Attempt to close connection due to fatal exception:
* 2014-07-16 09:52:01.651 Отпечаток ключа хоста - ssh-rsa 2048 29:c7:3b:e8:70:46:b4:83:dd:06:76:0d:85:22:af:37.
* 2014-07-16 09:52:01.651 (Exception) Ключ сервера не проверялся!
. 2014-07-16 09:52:01.651 Closing connection.
. 2014-07-16 09:52:01.651 Sending special code: 12
3 John83
 
16.07.14
11:05
удалил соединение, добавил по новой - теперь требует пароль, хотя в соединении сделал "сохранить". Как его можно прописать?
4 f_vadim
 
16.07.14
11:06
Если вы доверяете этому хосту, нажмите «Да»

"Да" нажимал?
5 John83
 
16.07.14
11:06
где можно описание команд посмотреть?
6 John83
 
16.07.14
11:07
(4) при выполнении команды он ничего не спрашивал, потом добавил кэш и дело сдвинулось
PS опять же непонятно, как ей написать, что хочу нажать да?
7 f_vadim
 
16.07.14
11:08
(6) подключись один раз в интерактивном режиме
8 John83
 
16.07.14
11:12
(7) да я уж двадцать раз подключался и отключался (через ярлык)
9 f_vadim
 
16.07.14
11:17
Так на ключ в кэше сейчас ругается?

пользователь/пароль можно попробовать задать так:
user:password@example.com
10 John83
 
16.07.14
11:20
(9) сейчас вроде не ругается

. 2014-07-16 11:18:41.650 --------------------------------------------------------------------------
. 2014-07-16 11:18:41.650 WinSCP Версия 5.5.3 (сборка 4214) (OS 6.1.7601 Service Pack 1 - Windows 7 Professional)
. 2014-07-16 11:18:41.650 Configuration: HKEY_CURRENT_USER\Software\Martin Prikryl\WinSCP 2\
. 2014-07-16 11:18:41.650 Local account: REDIUS\telnov
. 2014-07-16 11:18:41.650 Working directory: C:\Users\telnov
. 2014-07-16 11:18:41.650 Process ID: 4580
. 2014-07-16 11:18:41.650 Command-line: "C:\Program Files (x86)\WinSCP\WinSCP.exe" /console=553 /consoleinstance=_4056_608 "/console" "/command" "option batch abort" "open redius.sbp.ru@redius.spb.ru" "get /htdocs/.exchange/orders.csv D:\temp\" "close" "exit"
. 2014-07-16 11:18:41.651 Time zone: Current: GMT+4 (Азербайджанское время (зима)), No DST
. 2014-07-16 11:18:41.651 Warning: System option "Automatically adjust clock for Daylight Saving Time" is disabled, timestamps will not be represented correctly
. 2014-07-16 11:18:41.651 Login time: 16 Июль 2014 г. 11:18:41
. 2014-07-16 11:18:41.651 --------------------------------------------------------------------------
. 2014-07-16 11:18:41.651 Script: Retrospectively logging previous script records:
> 2014-07-16 11:18:41.651 Script: option batch abort
< 2014-07-16 11:18:41.651 Script: batch           abort    
> 2014-07-16 11:18:41.651 Script: open redius.sbp.ru@redius.spb.ru
. 2014-07-16 11:18:41.651 --------------------------------------------------------------------------
. 2014-07-16 11:18:41.651 Session name: redius.sbp.ru@redius.spb.ru (Modified site)
. 2014-07-16 11:18:41.651 Host name: redius.spb.ru (Port: 22)
. 2014-07-16 11:18:41.651 User name: redius.sbp.ru (Password: No, Key file: No)
. 2014-07-16 11:18:41.651 Tunnel: No
. 2014-07-16 11:18:41.651 Transfer Protocol: SFTP (SCP)
. 2014-07-16 11:18:41.651 Ping type: -, Ping interval: 30 sec; Timeout: 15 sec
. 2014-07-16 11:18:41.651 Proxy: none
. 2014-07-16 11:18:41.651 Send buffer: 262144
. 2014-07-16 11:18:41.651 SSH protocol version: 2; Compression: No
. 2014-07-16 11:18:41.651 Bypass authentication: No
. 2014-07-16 11:18:41.651 Try agent: Yes; Agent forwarding: No; TIS/CryptoCard: No; KI: Yes; GSSAPI: No
. 2014-07-16 11:18:41.651 Ciphers: aes,blowfish,3des,WARN,arcfour,des; Ssh2DES: No
. 2014-07-16 11:18:41.651 SSH Bugs: A,A,A,A,A,A,A,A,A,A
. 2014-07-16 11:18:41.651 Simple channel: Yes
. 2014-07-16 11:18:41.651 Return code variable: Autodetect; Lookup user groups: A
. 2014-07-16 11:18:41.651 Shell: default
. 2014-07-16 11:18:41.651 EOL: 0, UTF: 2
. 2014-07-16 11:18:41.651 Clear aliases: Yes, Unset nat.vars: Yes, Resolve symlinks: Yes
. 2014-07-16 11:18:41.651 LS: ls -la, Ign LS warn: Yes, Scp1 Comp: No
. 2014-07-16 11:18:41.651 SFTP Bugs: A,A
. 2014-07-16 11:18:41.651 SFTP Server: default
. 2014-07-16 11:18:41.651 Local directory: default, Remote directory: home, Update: Yes, Cache: Yes
. 2014-07-16 11:18:41.651 Cache directory changes: Yes, Permanent: Yes
. 2014-07-16 11:18:41.651 DST mode: 1; Timezone offset: 0h 0m
. 2014-07-16 11:18:41.651 --------------------------------------------------------------------------
. 2014-07-16 11:18:41.651 Looking up host "redius.spb.ru"
. 2014-07-16 11:18:41.665 Connecting to 84.204.252.3 port 22
. 2014-07-16 11:18:41.669 Waiting for the server to continue with the initialization
. 2014-07-16 11:18:41.669 Detected network event
. 2014-07-16 11:18:41.683 Detected network event
. 2014-07-16 11:18:41.683 Server version: SSH-2.0-OpenSSH_6.1_hpn13v11 FreeBSD-20120901
. 2014-07-16 11:18:41.683 Using SSH protocol version 2
. 2014-07-16 11:18:41.683 We claim version: SSH-2.0-WinSCP_release_5.5.3
. 2014-07-16 11:18:41.683 Waiting for the server to continue with the initialization
. 2014-07-16 11:18:41.690 Detected network event
. 2014-07-16 11:18:41.690 Doing Diffie-Hellman group exchange
. 2014-07-16 11:18:41.690 Waiting for the server to continue with the initialization
. 2014-07-16 11:18:41.799 Detected network event
. 2014-07-16 11:18:41.799 Doing Diffie-Hellman key exchange with hash SHA-256
. 2014-07-16 11:18:42.031 Waiting for the server to continue with the initialization
. 2014-07-16 11:18:42.053 Detected network event
. 2014-07-16 11:18:42.303 Verifying host key rsa2 0x23,0xb513b870b15e1d22 e1667a7047dd6896 237f55154c2d8e1d c3edaffd526cb15b 5c362c6cb42d5dab 036fb9f1333e6d94 a1e5886da54455dd e122ed38aa088b91 2816b91ebbc5dfd8 2df7f414077eb488 02d4379b03fd4b39 b444f4b8dcb94678 e1c4960fb8caa9a4 69126d42424e17f8 c0b3599cbba5dd47 4a211234744de70d 0225ebed7b3a8a18 f53f0b43f1148533 8d57aaada251e5b7 e8af5cd4f2f58bb8 7248bade5aaf70bf ad1d877d6961347b 5673654273f96dc0 8ed88bff6e7b2fd2 5c911e5d7472012e 36523a5f2c161a77 a7acc6e15dbafaaa 55673b9dc00ac768 41433ee664e4c77d 0d8f454f0969ecf7 91a70c88d020f0ab a67269d1cb8c42e1  with fingerprint ssh-rsa 2048 29:c7:3b:e8:70:46:b4:83:dd:06:76:0d:85:22:af:37
. 2014-07-16 11:18:42.304 Host key matches cached key
. 2014-07-16 11:18:42.304 Host key fingerprint is:
. 2014-07-16 11:18:42.304 ssh-rsa 2048 29:c7:3b:e8:70:46:b4:83:dd:06:76:0d:85:22:af:37
. 2014-07-16 11:18:42.304 Initialised AES-256 SDCTR client->server encryption
. 2014-07-16 11:18:42.304 Initialised HMAC-SHA-256 client->server MAC algorithm
. 2014-07-16 11:18:42.304 Initialised AES-256 SDCTR server->client encryption
. 2014-07-16 11:18:42.304 Initialised HMAC-SHA-256 server->client MAC algorithm
. 2014-07-16 11:18:42.304 Waiting for the server to continue with the initialization
. 2014-07-16 11:18:42.413 Detected network event
. 2014-07-16 11:18:42.413 Pageant is running. Requesting keys.
. 2014-07-16 11:18:42.414 Pageant has 0 SSH-2 keys
! 2014-07-16 11:18:42.414 Using username "redius.sbp.ru".
. 2014-07-16 11:18:42.414 Waiting for the server to continue with the initialization
. 2014-07-16 11:18:42.420 Detected network event
. 2014-07-16 11:18:42.420 Attempting keyboard-interactive authentication
. 2014-07-16 11:18:42.420 Waiting for the server to continue with the initialization
. 2014-07-16 11:18:42.425 Detected network event
. 2014-07-16 11:18:42.425 Prompt (6, SSH server authentication, Using keyboard-interactive authentication., Password:)
. 2014-07-16 11:18:52.426 Waiting for the server to continue with the initialization
. 2014-07-16 11:18:52.432 Detected network event
. 2014-07-16 11:18:52.432 Keyboard-interactive authentication failed
! 2014-07-16 11:18:52.432 Access denied
. 2014-07-16 11:18:52.432 Attempting keyboard-interactive authentication
. 2014-07-16 11:18:52.432 Waiting for the server to continue with the initialization
. 2014-07-16 11:18:52.439 Detected network event
. 2014-07-16 11:18:52.439 Prompt (6, SSH server authentication, Using keyboard-interactive authentication., Password:)
. 2014-07-16 11:19:02.440 Disconnected: Unable to authenticate
11 John83
 
16.07.14
11:21
(9) user:password@example.com
а это куда впихнуть?
12 f_vadim
 
16.07.14
11:25
видимо сюда
open redius.sbp.ru:пароль@redius.spb.ru
13 John83
 
16.07.14
11:30
(12) не хочет..
. 2014-07-16 11:28:16.934 --------------------------------------------------------------------------
. 2014-07-16 11:28:16.935 WinSCP Версия 5.5.3 (сборка 4214) (OS 6.1.7601 Service Pack 1 - Windows 7 Professional)
. 2014-07-16 11:28:16.935 Configuration: HKEY_CURRENT_USER\Software\Martin Prikryl\WinSCP 2\
. 2014-07-16 11:28:16.935 Local account: REDIUS\telnov
. 2014-07-16 11:28:16.935 Working directory: C:\Users\telnov
. 2014-07-16 11:28:16.935 Process ID: 4140
. 2014-07-16 11:28:16.935 Command-line: "C:\Program Files (x86)\WinSCP\winscp.exe"  /console /command "option batch abort" "open redius.sbp.ru:***********************@redius.spb.ru" "get /htdocs/.exchange/orders.csv D:\temp\" "close" "exit"
. 2014-07-16 11:28:16.935 Time zone: Current: GMT+4 (Азербайджанское время (зима)), No DST
. 2014-07-16 11:28:16.935 Warning: System option "Automatically adjust clock for Daylight Saving Time" is disabled, timestamps will not be represented correctly
. 2014-07-16 11:28:16.935 Login time: 16 Июль 2014 г. 11:28:16
. 2014-07-16 11:28:16.935 --------------------------------------------------------------------------
. 2014-07-16 11:28:16.935 Script: Retrospectively logging previous script records:
> 2014-07-16 11:28:16.935 Script: option batch abort
< 2014-07-16 11:28:16.935 Script: batch           abort    
> 2014-07-16 11:28:16.935 Script: open redius.sbp.ru:***@redius.spb.ru
. 2014-07-16 11:28:16.935 --------------------------------------------------------------------------
. 2014-07-16 11:28:16.935 Session name: redius.sbp.ru@redius.spb.ru (Modified site)
. 2014-07-16 11:28:16.935 Host name: redius.spb.ru (Port: 22)
. 2014-07-16 11:28:16.935 User name: redius.sbp.ru (Password: Yes, Key file: No)
. 2014-07-16 11:28:16.935 Tunnel: No
. 2014-07-16 11:28:16.935 Transfer Protocol: SFTP (SCP)
. 2014-07-16 11:28:16.935 Ping type: -, Ping interval: 30 sec; Timeout: 15 sec
. 2014-07-16 11:28:16.935 Proxy: none
. 2014-07-16 11:28:16.935 Send buffer: 262144
. 2014-07-16 11:28:16.935 SSH protocol version: 2; Compression: No
. 2014-07-16 11:28:16.935 Bypass authentication: No
. 2014-07-16 11:28:16.935 Try agent: Yes; Agent forwarding: No; TIS/CryptoCard: No; KI: Yes; GSSAPI: No
. 2014-07-16 11:28:16.935 Ciphers: aes,blowfish,3des,WARN,arcfour,des; Ssh2DES: No
. 2014-07-16 11:28:16.935 SSH Bugs: A,A,A,A,A,A,A,A,A,A
. 2014-07-16 11:28:16.935 Simple channel: Yes
. 2014-07-16 11:28:16.935 Return code variable: Autodetect; Lookup user groups: A
. 2014-07-16 11:28:16.935 Shell: default
. 2014-07-16 11:28:16.935 EOL: 0, UTF: 2
. 2014-07-16 11:28:16.935 Clear aliases: Yes, Unset nat.vars: Yes, Resolve symlinks: Yes
. 2014-07-16 11:28:16.935 LS: ls -la, Ign LS warn: Yes, Scp1 Comp: No
. 2014-07-16 11:28:16.935 SFTP Bugs: A,A
. 2014-07-16 11:28:16.935 SFTP Server: default
. 2014-07-16 11:28:16.935 Local directory: default, Remote directory: home, Update: Yes, Cache: Yes
. 2014-07-16 11:28:16.935 Cache directory changes: Yes, Permanent: Yes
. 2014-07-16 11:28:16.935 DST mode: 1; Timezone offset: 0h 0m
. 2014-07-16 11:28:16.935 --------------------------------------------------------------------------
. 2014-07-16 11:28:16.935 Looking up host "redius.spb.ru"
. 2014-07-16 11:28:16.939 Connecting to 84.204.252.3 port 22
. 2014-07-16 11:28:16.944 Waiting for the server to continue with the initialization
. 2014-07-16 11:28:16.944 Detected network event
. 2014-07-16 11:28:16.958 Detected network event
. 2014-07-16 11:28:16.958 Server version: SSH-2.0-OpenSSH_6.1_hpn13v11 FreeBSD-20120901
. 2014-07-16 11:28:16.958 Using SSH protocol version 2
. 2014-07-16 11:28:16.958 We claim version: SSH-2.0-WinSCP_release_5.5.3
. 2014-07-16 11:28:16.958 Waiting for the server to continue with the initialization
. 2014-07-16 11:28:16.964 Detected network event
. 2014-07-16 11:28:16.964 Doing Diffie-Hellman group exchange
. 2014-07-16 11:28:16.964 Waiting for the server to continue with the initialization
. 2014-07-16 11:28:17.070 Detected network event
. 2014-07-16 11:28:17.070 Doing Diffie-Hellman key exchange with hash SHA-256
. 2014-07-16 11:28:17.306 Waiting for the server to continue with the initialization
. 2014-07-16 11:28:17.328 Detected network event
. 2014-07-16 11:28:17.582 Verifying host key rsa2 0x23,0xb513b870b15e1d22 e1667a7047dd6896 237f55154c2d8e1d c3edaffd526cb15b 5c362c6cb42d5dab 036fb9f1333e6d94 a1e5886da54455dd e122ed38aa088b91 2816b91ebbc5dfd8 2df7f414077eb488 02d4379b03fd4b39 b444f4b8dcb94678 e1c4960fb8caa9a4 69126d42424e17f8 c0b3599cbba5dd47 4a211234744de70d 0225ebed7b3a8a18 f53f0b43f1148533 8d57aaada251e5b7 e8af5cd4f2f58bb8 7248bade5aaf70bf ad1d877d6961347b 5673654273f96dc0 8ed88bff6e7b2fd2 5c911e5d7472012e 36523a5f2c161a77 a7acc6e15dbafaaa 55673b9dc00ac768 41433ee664e4c77d 0d8f454f0969ecf7 91a70c88d020f0ab a67269d1cb8c42e1  with fingerprint ssh-rsa 2048 29:c7:3b:e8:70:46:b4:83:dd:06:76:0d:85:22:af:37
. 2014-07-16 11:28:17.582 Host key matches cached key
. 2014-07-16 11:28:17.582 Host key fingerprint is:
. 2014-07-16 11:28:17.582 ssh-rsa 2048 29:c7:3b:e8:70:46:b4:83:dd:06:76:0d:85:22:af:37
. 2014-07-16 11:28:17.582 Initialised AES-256 SDCTR client->server encryption
. 2014-07-16 11:28:17.582 Initialised HMAC-SHA-256 client->server MAC algorithm
. 2014-07-16 11:28:17.582 Initialised AES-256 SDCTR server->client encryption
. 2014-07-16 11:28:17.582 Initialised HMAC-SHA-256 server->client MAC algorithm
. 2014-07-16 11:28:17.582 Waiting for the server to continue with the initialization
. 2014-07-16 11:28:17.685 Detected network event
. 2014-07-16 11:28:17.686 Pageant is running. Requesting keys.
. 2014-07-16 11:28:17.686 Pageant has 0 SSH-2 keys
! 2014-07-16 11:28:17.686 Using username "redius.sbp.ru".
. 2014-07-16 11:28:17.686 Waiting for the server to continue with the initialization
. 2014-07-16 11:28:17.694 Detected network event
. 2014-07-16 11:28:17.694 Attempting keyboard-interactive authentication
. 2014-07-16 11:28:17.694 Waiting for the server to continue with the initialization
. 2014-07-16 11:28:17.699 Detected network event
. 2014-07-16 11:28:17.699 Prompt (6, SSH server authentication, Using keyboard-interactive authentication., Password:)
. 2014-07-16 11:28:17.699 Using stored password.
. 2014-07-16 11:28:17.699 Waiting for the server to continue with the initialization
. 2014-07-16 11:28:17.706 Detected network event
. 2014-07-16 11:28:17.706 Keyboard-interactive authentication failed
! 2014-07-16 11:28:17.706 Access denied
. 2014-07-16 11:28:17.706 Attempting keyboard-interactive authentication
. 2014-07-16 11:28:17.706 Waiting for the server to continue with the initialization
. 2014-07-16 11:28:17.714 Detected network event
. 2014-07-16 11:28:17.714 Prompt (6, SSH server authentication, Using keyboard-interactive authentication., Password:)
. 2014-07-16 11:28:17.714 Using remembered password.
. 2014-07-16 11:28:17.714 Waiting for the server to continue with the initialization
. 2014-07-16 11:28:17.720 Detected network event
. 2014-07-16 11:28:17.720 Keyboard-interactive authentication failed
! 2014-07-16 11:28:17.720 Access denied
. 2014-07-16 11:28:17.720 Attempting keyboard-interactive authentication
. 2014-07-16 11:28:17.720 Waiting for the server to continue with the initialization
. 2014-07-16 11:28:17.726 Detected network event
. 2014-07-16 11:28:17.726 Prompt (6, SSH server authentication, Using keyboard-interactive authentication., Password:)
. 2014-07-16 11:28:17.726 Disconnected: Unable to authenticate
14 f_vadim
 
16.07.14
11:33
вроде и
Using remembered password.

а в итоге
Access denied


хз. проверяй логин/пароль
15 John83
 
16.07.14
11:33
в мелькающем окошке консоли winscp проскакивает
http://savepic.org/5802882.png
16 John83
 
16.07.14
11:37
(14) да в том-то и дело, что копирую одно и то же
17 arsik
 
гуру
16.07.14
11:49
(0) А зачем ты winscp используешь. Есть нормальный консольный в putty.
pscp.exe или psftp.exe
18 John83
 
16.07.14
11:59
(17) ну хз... что нашел, то и пробую
19 John83
 
16.07.14
12:00
+18 меня любой вариант устроит - лишь бы работало
20 arsik
 
гуру
16.07.14
12:21
pscp.exe redius.sbp.ru@redius.spb.ru:/htdocs/.exchange/orders.csv
21 f_vadim
 
16.07.14
12:24
Зачем тебе sftp, авторизация всякая, если твой файлик качается просто так по ссылке?

redius.spb.ru/.exchange/orders.csv

:)
22 arsik
 
гуру
16.07.14
12:25
Немного вот так
pscp -pw userpassword username@redius.spb.ru:/htdocs/.exchange/orders.csv d:\localfolders\
23 John83
 
16.07.14
12:34
(21) вот ведь палево :)
24 John83
 
16.07.14
14:54
в итоге это все должно выглядеть след. образом
"C:\Program Files\WinSCP\winscp.exe" /console /command "option batch abort confirm off" "open sftp://redius.spb.ru:*****************************@redius.spb.ru:20005/ -hostkey="ssh-rsa 2048 20:d7:a9:6d:09:d5:7e:01:bc:0f:27:d8:78:d8:e8:5c"" "get /htdocs/.exchange/orders.csv D:\temp\" "close" "exit"
Закон Брукера: Даже маленькая практика стоит большой теории.