I need to revise file transfer over TCP/IP. This article consists of links on encryption, sftp man pages, restricting shell escapes, sshd, ssh keys, restarts and scp.
How to encrypt the channel?
- See http://stackoverflow.com/questions/2517252/transfer-file-over-ssh
- http://www.openssh.org/manual.html, lists and links the manual page
The sftp man pages are as follows,
With FTP there exist both shell escapes and commands that need to be restricted, such as cd and mget/mput
chroot jails might be useful
do we still have restricted shells
seems to work
For various reasons, I checked the sshd documentation
it can be run in file transfer mode, not yet found if it can do restart?
Dealing with keys is obviously the same, here’s Prof. Chou on the subject. Here’s a link from lifehacker about how to set up an ssh server in the home. It has a compare and contrast with FTPS i.e. FTP over SSL and thus talks about x.509 certs.
And here’s the Ubuntu Page, https://help.ubuntu.com/10.04/serverguide/ftp-server.html
While looking up transfer restart, I came across some references to an IETF RFC. Another idea would be to split the file, sftp it and then cat it back together again, thus ensuring that an FTP was restartable from the failing chunk to the end of file.
Here’s a note on SCP vs SFTP