This is probably not a direct answer to what you’re asking, but when I need to transfer files over a SSH session I use WinSCP, which is an excellent file transfer program over SCP or SFTP. Of course this assumes you’re on Windows.
Click on start menu.
Click run
In the open box, type cmd then click ok
At the command prompt, enter:
c:>pscp source_file_name userid@server_name:/path/destination_file_name.
For example:
c:>pscp november2012 [email protected]:/mydata/november2012.
When promted, enter your password for server.
Enjoy