Differences

This shows you the differences between the selected revisions of the page.

2014-02-05 2014-03-03
session url should end with slash (martin) key size should be 2048 bit at least nowadays (martin)
Line 53: Line 53:
option confirm off option confirm off
# Connect # Connect
-open sftp://user:password@example.com/ -hostkey="ssh-rsa 1024 xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx"+open sftp://user:password@example.com/ -hostkey="ssh-rsa 2048 xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx"
# Change remote directory # Change remote directory
cd /home/user cd /home/user
Line 80: Line 80:
    $sessionOptions.UserName = "user"     $sessionOptions.UserName = "user"
    $sessionOptions.Password = "password"     $sessionOptions.Password = "password"
-    $sessionOptions.SshHostKeyFingerprint = "ssh-rsa 1024 xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx"+    $sessionOptions.SshHostKeyFingerprint = "ssh-rsa 2048 xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx"
    $session = New-Object WinSCP.Session     $session = New-Object WinSCP.Session

Last modified: by martin