Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have newer worked with networking and SSH but I have a task with it. On virtual machine I have a Ubuntu on real machine I have a Windows; I need to write a programm in Windows, which is create a user in Ubuntu. How I suggested, I need to write a script to create a user on remote machine using ssh.I download a WinSCP and try to connect with my virtual machine typing in Host name Ubuntu IP, and have a error connection refused. What I did wrong?

share|improve this question

closed as not a real question by Chopper3, Chris S Jul 9 '12 at 14:38

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

Why you use WinSCP as it's for transfering files, not executing commands and why you just not ssh to the machin and execute adduser command? – Vaska Jul 9 '12 at 13:04
I don't know nothing about it, I use WinSCP because it is a ssh client. – Alexander Jul 9 '12 at 14:03
Now when I run SSH on Ubuntu, I have a Connection timed out on PuTTy and WinSCP. – Alexander Jul 9 '12 at 14:13
up vote 1 down vote accepted

Have you, or someone else created a user on this server for you?

I havent used winSCP recently, does it have remote shell capabilities? I understood it to be a scp client (ssh secure copy). You may want to get yourself Putty

But make sure that your user has been created properly first.

I assume you can access the server from a the vm console. Is sshd running? ps -ef | grep sshd

Try sshing locally on the ubuntu server (again assuming you are able to access), and paste the output of ssh -v localhost

If you arent able to access the ubuntu server from the vm console and you cant ssh in, and you were the one that installs it, theres not a lot I can suggest.

share|improve this answer
I try to use Putty, but It is the same error in it. I create a user in Ubuntu when I install it. – Alexander Jul 9 '12 at 12:32
So you are the administrator, and installer for this VM? Is ssh enabled, is the network up, are you trying to access it from another network, is the network accessable, are there firewalls in between. Can you 'ping' this server from where you are? Is there anything else running on this server that you can access? for example http on port 80? – Sirch Jul 9 '12 at 12:41
Yes I'm administrator and installer this VM, ssh not enabled on VM, I'm trying to access from my real machin in virtual machine, the network is accessable (I think so, bechose when I run console on windows i see network which call VirtualBox Host-Only and it's IP and in ubuntu when I run Terminal and typing ifconfig I see the IP of this network) – Alexander Jul 9 '12 at 13:54
Install sshd sudo apt-get install openssh-server openssh-client – Sirch Jul 9 '12 at 14:36
//sudo apt-get install openssh-server openssh-client- this comannd isn't work its talk "cannot stat 'openssh-server' no such file in directory" – Alexander Jul 11 '12 at 9:26
  • Is a SSH server installed and configured on the VM?
  • Did you enter any security credentials (username/password, SSH key)? In general, you'll need some kind of authentication to connect via SSH
share|improve this answer
I don't installed and configured ssh server on VM, how i can do it? – Alexander Jul 9 '12 at 12:27

Not the answer you're looking for? Browse other questions tagged or ask your own question.