I am often working remotely with SSH and SFTP. The latter being basically a file copy protocol running over SSH, I am wondering whether there is a reason those two tools have not been integrated yet except from "nobody could be bothered to do it so far". With "integration" I mean to say that there should be some way of changing the SSH mode to SFTP and back in the same session. Like this for example:
Log in with SSH:
$ ssh -i privkey firstname.lastname@example.org Last login: Tue Nov 18 10:47:25 2014 -bash-4.1$ ls cgi-bin error html icons manual -bash-4.1$ cd html -bash-4.1$ ls index.html -bash-4.1$ md5sum index.html ad7c5e1ed76c2d4efd6613315b4d1411
We want to replace index.html, so apply some magic keyboard combination to switch mode:
sftp> put index.html
Back to SSH mode using another keyboard combination:
-bash-4.1$ md5sum index.html dd208743fa38dd55ec21c1ed75fa035c
Sounds very practical and obviates the need to do copy-paste or to have two sessions open. Would implementing this demand heavy changes to the SSH protocol?