Download or copy files over an active SSH session using zssh | UbuntuCafe

Download or copy files over an active SSH session using zssh


zssh (Zmodem SSH) is a program for interactively transferring files to a remote machine while using the secure  shell (ssh).  It  is intended to be a convenient alternative to scp , allowing to transfer files without  having  to  open another session and re-authenticate oneself.

zssh  is an interactive wrapper for ssh used to switch the ssh connection between the remote shell  and  file  transfers.  This  is  achieved  by  using  another tty/pty pair between the user and the local ssh process to plug  either the  user's  tty  (remote  shell  mode) or another process (file transfer mode) on the ssh connection.

Install zssh on Ubuntu server and client

zssh is available in universe, so you can install it with following command.

sudo apt-get install zssh

After successful installation on your Ubuntu server and client, loggin with zssh and just hit 'ctrl-@' and it brings up the "File transfer mode" which allows you to send files back down the pipe to your client machine, or upload them from client to server.


Post a Comment