Putty PSCP fails with: “ssh_init: Network error: Cannot assign requested address”

E:\>pscp -v file.tgz user@192.168.5.58:/file.tgz
Looking up host "192.168.5.58" for SSH connection
Connecting to 192.168.5.58 port 0
Failed to connect to 192.168.5.58: Network error: Cannot assign requested address
ssh_init: Network error: Cannot assign requested address

E:\>

On fresh install is pscp using port 0 and not port 22 and fails therefore. This gets visible if you run the command with -v.

Fix one: use -P 22:

pscp -P 22 file.tgz user@192.168.5.58:/file.tgz

Fix two: Open putty and resave the default session with port 22.