         # Uploading #{file} to #{new_path} (temporarily)
         """
         S.lock({Hypnotoad.Host.SSH.Connection, conn})
-        {:ok, sftp_channel} = :ssh_sftp.start_channel(conn)
+        {:ok, sftp_channel} = sftp_channel(conn)
         :ok = :ssh_sftp.write_file(sftp_channel, new_path, content)
         S.unlock({Hypnotoad.Host.SSH.Connection, conn})
         :gproc_ps.publish(:l, {Hypnotoad.Shell, ref}, """)

  	{:noreply, s}
  end

end

defmodule Hypnotoad.Host.SSH.Channel.Sup do

    # Downloading #{file}
    """
    S.lock({Hypnotoad.Host.SSH.Connection, conn})
    {:ok, sftp_channel} = sftp_channel(conn)
    {:ok, data} = :ssh_sftp.read_file(sftp_channel, file)
    :ssh_sftp.stop_channel(sftp_channel)
    S.unlock({Hypnotoad.Host.SSH.Connection, conn})
