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?
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.
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?
Try sshing locally on the ubuntu server (again assuming you are able to access), and paste the output of
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.