Re: scp with tty

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



I actually had to set both ssh keys and commented out the requiretty  
in the sudoers file.

What I was doing was having ssh called from a script and running a  
command on that remote host it was ssh-ing into.


On Oct 13, 2009, at 11:43 AM, Les Mikesell wrote:

> tony.chamberlain@xxxxxxxxx wrote:
>> Hello
>>
>> I need to know a way to have scp allocate a tty on a remote machine
>> so I can have it run sudo and activate a vpn which it will need to
>> activate. scp with "-S" does not work. I can't chmod +s the cisco  
>> vpn client
>> because when I try to run it it says it can not have setuser.
>>
>> I could have the user scp via root but I do not want to do that.
>>
>> Any way to have scp allocate a tty?
>
> Why don't you set up ssh keys for a passwordless connection as the
> appropriate user for the file copy and avoid the problem?
>
> -- 
>   Les Mikesell
>     lesmikesell@xxxxxxxxx
> _______________________________________________
> CentOS mailing list
> CentOS@xxxxxxxxxx
> http://lists.centos.org/mailman/listinfo/centos

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux