[Asterisk-Users] FW: Getting PHP Config to work?
Tzafrir Cohen
tzafrir at cohens.org.il
Fri Feb 25 08:48:45 MST 2005
On Fri, Feb 25, 2005 at 01:52:21PM -0000, C. Tomlinson wrote:
> Richard,
>
> I have been using WinSCP to transfer files across easily without messing
> with FTP accounts. I had not found that feature, many thanks for pointing it
> out :-D
>
> I will definitely use this from now on until I find a better solution. Do
> you have an easy way to reload asterisk after changing the files? Have putty
> open to do a reload? Or use the builtin terminal capabilities of WinSCP?
Basically you need to run one shell command. In linux I'd use:
ssh root at rapidhost asterisk -rx reload
As this is a platform without native support of ssh, you can use the
command plink to get basically the same effect. Create a putty
configuration called "rapidroot" to connect to root at rapidhost and use
something like
plink rapidroot asterisk -rx reload
in a batch file. Or use [open]ssh from cygwin, if you're more comfortable with
it.
You should use public-keys authentication to get better control .
Actually you can configure a certain public key so it will only allow
running one single command (asterisk -rx reload, in your case).
>
> This is a great fix as my main machine is currently Windows. However I would
> still like to get phpconfig working as it would be easier to use that across
> the internet etc.
OVER THE INTERNET???
See my recent post on the previous thread about phpconfig. Allowing
phpconfig to do the same is quite insecure.
Also consider using mc from the shell.
--
Tzafrir Cohen | New signature for new address and | VIM is
http://tzafrir.org.il | new homepage | a Mutt's
tzafrir at cohens.org.il | | best
ICQ# 16849755 | Space reserved for other protocols | friend
More information about the asterisk-users
mailing list