Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
Trying to setup an SSH server on Windows Server 2003. What are some good ones? Preferably open source. I plan on using WinSCP as a client so a server which supports the advanced features implemented by that client would be great.
I've been using Bitvise SSH Server and it's really great. From install to administration it does it all through a GUI so you won't be putting together a sshd_config file. Plus if you use their client, Tunnelier, you get some bonus features (like mapping shares, port forwarding setup up server side, etc.) If you don't use their client it will still work with the Open Source SSH clients.
It's not Open Source and it costs $39.95, but I think it's worth it.
UPDATE 2009-05-21 11:10: The pricing has changed. The current price is $99.95 per install for commercial, but now free for non-commercial/personal use. Here is the current pricing.
I agree that cygwin/OpenSSH is the best choice, but its setup can be involved to say the least. Here is a document to get you started though: Installing OpenSSH
I've been using Bitvise SSH Server for a number of years. It is a wonderful product and it is easy to setup and maintain. It gives you great control over how users connect to the server with support for security groups.
copssh - OpenSSH for Windows
http://www.itefix.no/i2/copssh
Packages essential Cygwin binaries.
OpenSSH is a contender. Looks like it hasn't been updated in a while though.
It's the de facto choice in my opinion. And yes, running under Cygwin is really the nicest method.
VanDyke VShell is the best Windows SSH Server I've ever worked with. It is kind of expensive though ($250). If you want a free solution, freeSSHd works okay. The CYGWIN solution is always an option, I've found, however, that it is a lot of work & overhead just to get SSH.
You can run OpenSSH on Cygwin, and even install it as a Windows service.
I once used it this way to easily add backups of a Unix system - it would rsync a bunch of files onto the Windows server, and the Windows server had full tape backups.
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I am fairly new and interested in the Go programming language. I have the intention of using it to code a simple website that includes a shopping cart.
How to install golang on windows server? Is it the same process as a regular computer?
What steps do I take to deploy the website using the Windows server once it is finished.
To what extend is it required to use html, css, or javascript?
How can I keep the site running on the server for other users in our network/LAN to access it?
Any helpful information regarding web apps and/or windows server machines is appreciated!
This is as much a general dev ops question as it is specific to Go. A lot of things to consider here and everyone will have varying preferences but here are some guidelines I'd recommend:
It's not necessary to install the Go tool chain on your production server. You then have to maintain your Go installation on both your development and production environments and if your production server is a different OS than your Windows computer (eg. a Linux distribution) this will get out of hand quickly. Instead, just develop on your local and cross compile to the OS of your production server.
One thing you will need to keep on your production server is whatever DB you choose to work with your Go program.
You can then sftp or transfer through a method of your choice your compiled binary over to your production server along with your static web files. Once the binary is on your production server you can fire it up when you're SSH'ed in eg. ./programname
Depending on how you want to use Go, you don't need Apache. Use the net/http package to serve up your Html, CSS and JS files. You can transfer these static files over after you've worked on them on your local or you can just keep them in a Github repo and git pull them from your prod server as needed, assuming you've installed git there.
You generally don't need to worry about keeping it "running" on your production server. http.ListenAndServe listens on your port for incoming requests. If your server reboots or shuts downs you can automatically have your compiled binary start up along with it.
You can also work with things like Vagrant, Virtual Box and Ansible for high quality mimicking of your production environment and spinning up new servers according to your desired specs.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
I have a Windows 7 host machine with a VMWARE Workstation 9 based guest operating instance. What I need is that the guest OS to not only run but runs inside the guest in the VMWARE Workstation gui upon a host reboot--say, from a power failure. I have tried all solutions online but so far I am unable to make the GUI to appear--though the guest OS does launch.
Here is my solution so far: I have created a .bat file and setup Windows Task Scheduler to start the .bat program. Here is what's inside the batch file:
cd "C:\Program Files (x86)\VMware\VMware Workstation"
vmrun start "C:\VirtualMachines\WindowsServer2012_std_ArcGISVM2\Windows Server 2012 Std.vmx" gui
Note, I am using 'vmrun' program but using other online solutions which use the VM Ware Workstation's executable doesn't help with the gui part either. And adding or removing the 'gui' flag doesn't seem to make any difference.
Also note, I'd rather not use the Workstation as a Server in a 'shared' virtual machine setup. There should be a simpler way.
Thanks!
[Edited/Detailed Answer Below]
Never mind. I did end up creating a Shared VM per the instructions from another site (whose link is not working anymore!)
Here is how I accomplished this:
Using VMWare Workstation gui, pressed F9 to bring up option to enable Sharing of VMs.
In the Sharing window, right click on your VM ->Manage -> Share the VM; I chose default options.
In the same gui, under 'Shared VMs' tab, click 'Manage Auto Start'
That's all it took! And now I am able to launch the VMWare Workstation GUI after the host system reboots.
PS. I posted the Question here because I was originally using a script to achieve this; I thought there could be more scripts/programming solutions. Also, Expert Exchange maybe a competition but it provided me full solution yesterday without requiring any login; so, being a once paying member there, I had assumed that they have now become a 'free' site. But today their link doesn't work.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
I'm trying to figure out how to go about making an easy way to distribute a "dev environment" for working with my organization's Wordpress site. We currently have a local Linux server running the Wordpress site, and a VirtualBox image that is horribly out of date and a very poor representation of this server. We currently distribute this to team members for their local development, which causes lots of problems as the local image is often too different.
I'm not too worried about the database aspect of things; I'm thinking of just doing weekly dumps from the live server which can be imported by developers to keep their local up to date.
I'm more interested in finding an easy to distribute a preconfigured stack to users on OSX or Windows that already has PHP/Apache/MySQL configured by me, a git client set up to pull all the static files on command--something the user can just run, then go to localhost:8000 to see it. I'd also like some way for them to edit the files that were pulled from the git repository.
I'm currently looking into Docker and Vagrant but I'm not sure what's more appropriate for this task—Docker seems like it would be more suited to Linux machines. I know Vagrant supports mapping external folders into the VM, which seems like it'd solve my problem, but I wanted to ask for more suggestions before I start learning Chef/Puppet/etc.
I think both Vagrant and Docker may be used to solve your problem.
Vagrant may be more adequate to share the environment with Windows/mac machines, but integration with Docker in these systems are better day-by-day using tools such as boot2docker.
Docker by contrast requires using a moder Linux Kernel or one of these tools.
If I had to develop the Vagrant option, I would setup a machine with all the dependencies installed in the same machine. To install you can use one of the provisioners available in Vagrant (e.g.: Chef, Puppet). This may be easier if you have previous experience with them and/or if you are not very keen on bash. There are a lot of examples you can check to see how you can do it, such as https://github.com/r8/vagrant-lamp
Using Docker is also a very good option. Answering your question, you can share any local folder of the host machine with a container (using the docker run option -v or --volume). In this case I would run each of the services you want to provide (i.e.: php server, MySQL, Apache..) as independent containers, and linking them using the docker run option --link. Programming your Dockerfiles to build this containers may result more difficult than if you were using Chef or Puppet (although you could use them to build the containers, the integration is not as good as with Vagrant). But with Docker you can take advance of all the apps ready to use you have available in the Docker Hub. Also I would recommend you a docker tool called fig (www.fig.sh) that let running a container cluster linking and configuring the services easily, and it's allow to manage all the containers in a very comfortable way. Again you can find very illustrative examples of this user case over the internet, as for example https://github.com/kasperisager/phpstack
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 3 years ago.
Improve this question
I try to transfer a folder of files from my local computer to a server via ssh and scp. After getting sudo privileges, I'm using the command as follows:
scp -r C:/desktop/myfolder/deployments/ user#host:/path/to/whereyouwant/thefile
However, I get the following error:
ssh: C: Name or service not known
I'm guessing it is due to my syntax for C:/desktop etc. Any ideas?
BTW I'm using putty + Windows 7.
If your drive letter is C, you should be able to use
scp -r \desktop\myfolder\deployments\ user#host:/path/to/whereyouwant/thefile
without drive letter and backslashes instead of forward slashes.
You are using putty, so you can use pscp. It is better adapted to Windows.
Drive letters can be used in the target like
scp some_file user#host:/c/temp
where c is the drive letter. It's treated like a directory.
Maybe this works on the source, too.
On windows you can use a graphic interface of scp using winSCP. A nice free software that implements SFTP protocol.
I see this post is very old, but in my search for an answer to this very question, I was unable to unearth a solution from the vast internet super highway. I, therefore, hope I can contribute and help someone as they too find themselves stumbling for an answer. This simple, natural question does not seem to be documented anywhere.
On Windows 10 Pro connecting to Windows 10 Pro, both running OpenSSH (Windows version 7.7p1, LibreSSL 2.6.5), I was able to find a solution by trial and error. Though surprisingly simple, it took a while. I found the required syntax to be
BY EXAMPLE INSTEAD OF MORE OBSCURE AND INCOMPLETE TEMPLATES:
Transferring securely from a remote system to your local system:
scp user#remotehost:\D\mySrcCode\ProjectFooBar\somefile.cpp C:\myRepo\ProjectFooBar
or going the other way around:
scp C:\myRepo\ProjectFooBar\somefile.cpp user#remotehost:\D\mySrcCode\ProjectFooBar
I also found that if spaces are in the path, the quotations should begin following the remote host name:
scp user#remotehost:"\D\My Long Folder Name\somefile.cpp" C:\myRepo\SimplerNamerBro
Also, for your particular case, I echo what Cornel says:
On Windows, use backslash, at least at conventional command console.
Kind Regards.
RocketCityElectromagnetics
You can also try this:
scp -r /cygdrive/c/desktop/myfolder/deployments/ user#host:/path/to/whereyouwant/thefile
I have found it easiest to use a graphical interface on windows (I recommend mobaXTerm it has ssh, scp, ftp, remote desktop, and many more) but if you are set on command line I would recommend cd'ing into the directory with the source folder then
scp -r yourFolder username#server:/path/to/dir
the -r indicates recursive to be used on directories
Drive letter can be used in the source like
scp /c/path/to/file.txt user#server:/dir1/file.txt
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I'm looking for a good tool to manage ssh tunnels. Currently I'm using SSHTunnel (cocoa-sshtunnel) but its not very secure, if you look at a ps while connected you see the password in plaintext. And there is no way to configure a private key file per connection.
I also tried STM (http://projects.tynsoe.org/en/stm/index.php) however you cannot save your passwords, and also no private key option.
I'm working on osx Snow Leopard. I use the tunnels for Remote port forwarding. I have a local SVN server for website development, and checkout remotely. I cannot forward ports as I don't have access to the router.
What tools do you use?
SSH Tunnel Manager - This tool is great!
you should use the console and normal ssh for tunneling, at least thats what i always do. here a small introduction on how to use it. password saving is indeed something that doesn't work there but i always used keys anyway so you don't have to enter a password anymore
ssh tunnel from console:
http://www.revsys.com/writings/quicktips/ssh-tunnel.html
login with authkeys:
http://linuxproblem.org/art_9.html
this is both for linux and bsd but should work on mac os too, i remember using it there maybe some option has another shortcut, if it doesn't work look at man ssh
*EDIT
if you need a gui (comment) try jellyfissh seems it can do what you need
http://www.m-works.co.nz/jellyfissh.php
I wrote my own tool for this, Tunnel Boring Machine. It doesn't store passwords, but it works fine with SSH keys in ~/.ssh, which is how I use it.
It's possible that I'll get around to password storage at some point -- if you end up finding that TBM works for you but is missing some key feature like password storage, feel free to file an issue on GitHub, or, for that matter, implement it and send me a pull request.
I use Terminal for this and it works very well. You could create a shell script for your colleagues that sets up the tunnels with their username as an argument. That should be simple enough for them to run? For example:
#!/bin/sh
username=$1
servdest=ssh.yoursshserver.com
ssh -l ${username} -L 7777:${servdest}:7777 -L 2112:wiki.elsewhere.net:80 ${servdest}