[not subscribed; please CC me] The OpenSSH client has several configuration options for convenience, allowing aliases to be specified for long hostnames and default usernames for different hosts. I'd like to have a configuration option added to allow a default command to be specified. This would be useful where changing your shell on the remote host is not practical. My main reason for this is in order to use "screen" without having to keep typing it each time I log in. I can write the code but I thought it best to ask for opinions first. I'm not familiar with the codebase, but I would guess it to be a simple copy+paste job due to its similarity to the User configuration option. Thanks, Alan
On Fri, Apr 21, 2006 at 03:27:07PM +0000, Alan Jenkins wrote:> My main reason for this is in order to use "screen" without having > to keep typing it each time I log in.Couldn't you set that up with a clever .profile? //Peter
On 21/04/06 21:08:56, Peter Stuge wrote:> On Fri, Apr 21, 2006 at 03:27:07PM +0000, Alan Jenkins wrote: > > My main reason for this is in order to use "screen" without having > > to keep typing it each time I log in. > > Couldn't you set that up with a clever .profile?I thought about that and then forgot it :-). Yes, of course... SSH sets a couple of environment variables I could check for. I suspect a test for a tty wouldn't go amiss either. Thanks Alan