Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |
| transferring_files [2025/03/24 20:51] – [scp and sftp - secure copying and ftp] add link to other ssh tunnel and file transfer page peteyboy | transferring_files [2026/04/26 15:28] (current) – [scp and sftp - secure copying and ftp] papa |
|---|
| On Windows machines, you can use the [[#putty|PuTTY programs]]. If you are doing a lot of file transfer, you should look at [[using_ssh_for_connections_transfer_to_from_sdf|Using SSH for connections/transfer to/from SDF]] | On Windows machines, you can use the [[#putty|PuTTY programs]]. If you are doing a lot of file transfer, you should look at [[using_ssh_for_connections_transfer_to_from_sdf|Using SSH for connections/transfer to/from SDF]] |
| |
| | ---- |
| | |
| | **NOTE** |
| | |
| | scp and sftp connections to your SDF account may fail if your login run command script(s) (''~/.profile'' and/or other files depending on your login shell) generate too much output text. A recent security update to OpenSSH has reduced the amount of login output that triggers this error, so you may encounter this error even if you have used scp and sftp successfully in the past and made no changes to your login scripts. |
| | |
| | If you encounter this error, try reducing the number of ''echo'' statements and commands that output text in your login run command scripts. Alternatively, you can check the session options environment variable ''$-'' value for the character "i", which indicates an interactive session (scp and sftp sessions are non-interactive), before printing text in your login scripts. For example, if your shell is bash, you can enclose text-generating statements in a ''case'' statement: |
| | |
| | <code> |
| | case $- in |
| | *i*) |
| | # Text-generating statements or commands ... |
| | ;; |
| | esac |
| | </code> |
| ===== ssh and tar - securely copying directories ===== | ===== ssh and tar - securely copying directories ===== |
| |