About/Contact

Steve Trefethen

Steve Trefethen is a Director of Engineering at Reply. Contact me

View my LinkedIn profile


Powered by discountASP.NET
referal ID: sdtref
Why recommend discountASP.NET?
$720 in referrals so far!


Calendar

<<  February 2012  >>
MoTuWeThFrSaSu
303112345
6789101112
13141516171819
20212223242526
2728291234
567891011

View posts in large calendar

Disclaimer

The posts on this weblog are provided AS IS with no warranties, and confer no rights. The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.



Command line alternatives to Remote Desktop

December 30 2008 5:14PM
Most days I’m connected to a client’s VPN working on a project and lately I’ve converted from using Remote Desktop (RD), Terminals actually and highly recommended btw, to psexec and taskkill to get things done. Using psexec I start/stop CCService, run CCNET from the console, use SVN and build from the command line to name a few. The machine I connect to most of the time has a limited simultaneous RD users and occasionally I’m unable to get a connection so having an alternative is crucial. One caveat I ran into was TortoiseProc.exe fails to terminate when run remotely with psexec and has to be killed manually and unfortunately the SVN command line tools are not installed, at least not yet. Occasionally, I use remote.exe from the NT Resource Toolkit though I haven’t used that in quite awhile not to mention the EXE I have is from 1997, not that that makes it any less effective.

Do you do something similar? What utilities do you use?

[Update: Feb 23, 2009] I also use psloggedon which is useful to see who is using the machine. Additionally, it’s nice to be able to launch a console window on the remote machine as well like this (though as Bary notes below ssh is also an option):

psexec.exe \\machine -w d:\ cmd.exe

FacebookDel.icio.usDigg It!

Tags:

Comments (5) -

12/31/2008 12:32:41 PM #

I often use ssh to run just command line utilities. I use cygwin sshd, and when combined with screen (a kind of detatchable terminal session), it works out quite well.

The only problem really comes if you try to use ssh-agent to reduce password typing. Sshd isn't able to completely emulate password login with just ssh-agent public key stuff, so crypto utils, encrypted files and network drives aren't fully working then.

Barry Kelly

1/5/2009 10:55:24 PM #

Windows has also a telnet server, although not the most secure one, it can be enable when needed with sc or psservice. A VPN connection should protect the connection enough. Thanks to heaven MS has discovered that sometimes a remote machine can be easily administered via the command line and 2008 should be more friendly in this regard, although I didn't test it yet.

Kent Morwath

1/20/2009 9:48:58 AM #

Steve, sincere thanks for taking the time to post this info, its exactly what I'm looking for - I'm automating a remote web app deployment to Tomcat on a windows box when I'm used to *nix environments for this.  I'm thinking of using psexec to remotely execute a .bat script on the server to restart the web server and shuffle a few files around.  Do you have any suggestions for performing remote deployments to windows boxes?

Eliot Sykes

1/21/2009 12:36:36 AM #

Hi Eliot,
  Glad you found this helpful. Remote deployment is a bit more tricky as it depends on what exactly has to be deployed. For example, MS provides www.iis.net/.../default.aspx?tabid=34&i=1602&g=6">this tool which may or may not be useful.

Steve Trefethen

1/23/2009 8:09:54 AM #

Thanks for the tip Steve - looks like its tailored for IIS.

Eliot Sykes

Add comment




  Country flag
biuquote
  • Comment
  • Preview
Loading