Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Cygwin fails to read directory - setting up SSH Server


30 Jan 2013   #1

Windows 7 Home Premium Home Edition
 
 
Cygwin fails to read directory - setting up SSH Server

Hey guys,

Just after some advice. I'm setting up a personal SSH server following this guide:

Geek to Live: Set up a personal, home SSH server

I'm up to the step where I connect to the server. The only step that I've skipped is changing the protocol from 1,2 to 2 because I couldn't find it. But I doubt that makes a difference to my setup?

Anyway the error when I type in the final command: ssh <192.168.0.5> -1 Rya it comes up with:

-bash: 192.168.0.5: No such file or directory.

My Default Gateway IP is 192.168.0.1 and the IPv4 address is 192.168.0.5 (which was the one that worked when I forwarded port 22 in my router). Neither of these IPs work when I interchange them in the command.

Any insight into my problem is much appreciated. Hope to hear back from some more knowledgeable in this field.

Thanks,

Ryan


My System SpecsSystem Spec
.

30 Jan 2013   #2

Windows 7 Ultimate x64
 
 

I dont know a lot about cygwin, but it sounds like it can find the home directory or default directory.

You dont have to use cygwin to create an ssh server. i use freesshd Its very easy to setup and use. Plus your not using linux command you can use windows command and you're actually in your windows folders.
My System SpecsSystem Spec
30 Jan 2013   #3

Windows 7 Home Premium Home Edition
 
 

Thanks anyway! I tried installing the one you're talking about from the link you provided. The .exe file doesn't even open properly but I'll have a look at it again later. Kind of want to figure out Cygwin to be honest! Is there any good tutorials you followed for setting up FreeSSHD though?
My System SpecsSystem Spec
.


30 Jan 2013   #4

Windows 7 Ultimate x64
 
 

I know youtube has some. I like videos.

heres one.
http://www.techmalaya.com/2009/08/05...dows-freesshd/

I played with cygwin a little but I'm not that familiar with it.
My System SpecsSystem Spec
31 Jan 2013   #5

Windows 7 Ultimate x64
 
 

FreeSSHd is a good option for home use, but has some problems on Windows 7 when running as a service (works perfectly on XP though).
I'm using another alternative called WinSSHd that's also a native Windows SSH server (don't have to use cygwin) and has a good range of configuration options. It's proprietary software, but has both a paid and free options. For home use the free version is more than enough.
My System SpecsSystem Spec
03 Feb 2013   #6

Windows 7 Home Premium Home Edition
 
 

Thanks for the replies guys. I only got a chance to get back to the PC today. FreeSSHD did have problems, I've started setting up WinSSH though and it looks more promising. I am having an annoying error though which I've attached a picture of.

The Bitvise Server guide recommended checking whether the client would connect to a server before I locked down my personal server (this is where things begin to get fuzzy for me.) So that's what I'm doing but it's not recognising the authentication name which I've just made up on the spot. I don't actually know what I'm meant to put in that field.


Attached Images
 
My System SpecsSystem Spec
03 Feb 2013   #7

Windows 7 Ultimate x64
 
 

Apparently, it's attempting password login but fails according to the client's log. First thing that comes to mind is a wrong password.
Are you using, at the server, a virtual or a Windows user? If it's virtual, double check the password you've set for it. For Windows users, it's the very same password as your Windows login.
If not, checking the server log might contain some more clues.
My System SpecsSystem Spec
03 Feb 2013   #8

Windows 7 Home Premium Home Edition
 
 

Dear God.. I don't have a clue because I couldn't find a good setup guide for this one. Google search pulls up results from various pages of Bitvise's website and even they expect you to have some clue what you're doing with SSH.

I don't have a password for my Windows account at the moment and I never registered to Bitvise's servers or anything. I just installed the package because the server package installation guide recommended I try connect to the Bitvise server before I try to lock down my own server, and it came up with this.

EDIT: Anyway thanks for the advice guys but I'm just going to ask a friend to set everything up for me instead because it's becoming too time consuming for such a small task.
My System SpecsSystem Spec
03 Feb 2013   #9

Windows 7 Ultimate x64
 
 

That is only a suggestion, to test your setup before opening it to internet or anyone else, to make sure it works as you want before others have any access.

But that's the problem, you've not configured the server at all, so it doesn't knows what the user/passwords are. You need to open the SERVER control panel (the previous screenshot comes from the CLIENT, that's the next step). In that screen, go to the "easy settings" link, and there go to the "virtual accounts" tab. Create a new user there, those will be the username/password you'll have to enter when you enter the server. Accept to save the changes.

Then open the CLIENT. It may be the Bitvise one or any other SSH client out there you may like. Try connecting with localhost and when asked enter the user/password you've set before as a test. If everything is ok, the Windows command line should appear as expected.


Attached Thumbnails
Cygwin fails to read directory - setting up SSH Server-serverconfig.png  
My System SpecsSystem Spec
Reply

 Cygwin fails to read directory - setting up SSH Server




Thread Tools



Similar help and support threads for2: Cygwin fails to read directory - setting up SSH Server
Thread Forum
Solved Current working directory is read-only General Discussion
Setting up Cygwin on Windows 7 Network & Sharing
Setting up home network server using windows server 2008 R2 Network & Sharing
DVD fails to read Blank DVDs and CDR Hardware & Devices
Setting of the ACLs for the root directory of a logical partition Installation & Setup
32 bit app can only read files under its own directory? System Security

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 03:30 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33