I often find myself using ssh
and sftp
side-by-side in my Ubuntu terminal. A typical workflow looks like this:
- Log into some server with SSH and SFTP using the same public key on separate terminal windows.
- Create a directory with SSH.
put
some files into the directory with SFTP.- Set permissions with
chmod
over SSH.
It can be kind of annoying doing all of this with two terminal windows, so I'd really prefer if I could make it appear that this is all happening within a single process.
The questions I have are:
Is there a good reason the
ssh
andsftp
processes need to be kept separate? Or would it be "safe" for me to go ahead and write an application that combines them?
Thanks!
Update: It appears that sftp
supports many common terminal commands. However, it still does not support any arbitrary terminal command, as is the case with ssh
. So I would still like to see an answer to these questions rather than a justification as to why an answer is unnecessary.