OpenSSH with "resumable" functionality

Daniel Kahn Gillmor dkg at fifthhorseman.net
Tue Apr 20 01:18:08 EST 2010


On 04/19/2010 08:20 AM, Misha Koshelev wrote:
> Chris Wilson wrote:
>> while ! ssh user at host -o 'ServerAliveInterval 5' screen -d -RR;
>> do true; done
> 
> Also right now get..
> 
> Must be connected to a terminal.

This is probably because screen must be run while connected to a tty (or
pseudo-tty) on the host machine, and if you supply a command argument to
ssh, it will not ask sshd to allocate a tty by default.  You can use the
-t flag to override this behavior.

This would make the command:

  while ! ssh -t user at host -o 'ServerAliveInterval 5' screen -d -RR;
  do true; done

Hope this helps,

	--dkg

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 892 bytes
Desc: OpenPGP digital signature
URL: <http://lists.mindrot.org/pipermail/openssh-unix-dev/attachments/20100419/d5aa3f70/attachment-0001.bin>


More information about the openssh-unix-dev mailing list