LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Virtualization and Cloud (http://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/)
-   -   ssh to win7 in vbox (http://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/ssh-to-win7-in-vbox-762322/)

j1alu 10-16-2009 03:40 AM

ssh to win7 in vbox
 
ive set the second network-adapter in vbox to host-only (vboxnet0). that way im able to ssh from a debian-host to a debian-guest. I tried the same with win7.
I installed openssh (but had some problems with configuring it). Then i installed Putty, that way im able to ssh into the debian-host.
the other way around, from debian-host to windows-guest, it doesnt work.
Either im getting a short error message or the command just hangs, till i stop it with ctl-C.

I got the comodo-firewall installed, but even when i disabled it it didnt work.
thanks for some help.

sstendal 10-16-2009 03:52 AM

Putty is an ssh client. You would have to install an ssh server on the windows box if you want to use ssh from debian to windows. Openssh is both a client (the ssh application) and a server (the sshd daemon).

dyasny 10-16-2009 05:03 AM

could be something specific to windows7 - the security changes since XP are sometimes a real bugger to work with

j1alu 10-16-2009 06:35 AM

Quote:

Originally Posted by sstendal (Post 3721387)
Putty is an ssh client. You would have to install an ssh server on the windows box if you want to use ssh from debian to windows. Openssh is both a client (the ssh application) and a server (the sshd daemon).

yes, ok. As said i had trouble with setting openssh up. I installed it (all default) and was told i had to set up the file /etc/passwd.

Two sets of commands were mentioned:
mkgroup -l >> ..\etc\group (local groups)
mkgroup -d >> ..\etc\group (domain groups)

mkpasswd -l [-u <username>] >> ..\etc\passwd (local users)
mkpasswd -d [-u <username>] >> ..\etc\passwd (domain users)

so i ran:
Code:

mkgroup -l >> /etc/group
and
Code:

mkpasswd -l -u jalu >> /etc/passwd
a following
Code:

net start opensshd
gave me:
error 5; access is denied

I dont know if the two commands are right and how to access the windows-power-shell with admin-rights.

@dyasni: you might be right that it can be a problem with7, i could try with XP, but i guess first i gotta check how to run the mentioned commands, else i might run into similar problems ( ?).

If anyone knows how to do it, thanks a lot.

dyasny 10-16-2009 06:45 AM

Quote:

Originally Posted by j1alu (Post 3721537)
Code:

net start opensshd
gave me:
error 5; access is denied

I dont know if the two commands are right and how to access the windows-power-shell with admin-rights.

@dyasni: you might be right that it can be a problem with7, i could try with XP, but i guess first i gotta check how to run the mentioned commands, else i might run into similar problems ( ?).

If anyone knows how to do it, thanks a lot.

try with XP first, to make sure this is a win7 problem and not a v-box problem.

according to this:

Quote:

Code:

net start opensshd
gave me:
error 5; access is denied
I would be pretty confident you need to open a BZ under the windows implementation of openssh

generally, writing services for win7 is different from XP, and if you're running a version that wasn't tested for win7 you might be hitting a security restriction because of an older code misusage that tries to run in session 0 which in win7 is restricted

j1alu 10-16-2009 06:54 AM

ok, you convinced me and ill install XP and try.
and the two commands i used were correct that way, i couldnt find no answers (in the Readme or with google)
what is a BZ?


thanks

j1alu 10-16-2009 09:10 AM

i installed Bitvise WinSSHD in windows7 and am able to connect now.
anyone experience with it?
(i would prefer openssh, but google doesnt seem to be my friend, am im happy that it did "work" at all).

dyasny 10-16-2009 09:36 AM

Quote:

Originally Posted by j1alu (Post 3721554)
ok, you convinced me and ill install XP and try.
and the two commands i used were correct that way, i couldnt find no answers (in the Readme or with google)
what is a BZ?


thanks

BZ stands for BugZilla. a ticket in OpenSSH's issue tracking system


All times are GMT -5. The time now is 02:42 AM.