LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 10-16-2009, 03:40 AM   #1
j1alu
Member
 
Registered: Apr 2009
Distribution: debian gnu/linux
Posts: 798

Rep: Reputation: Disabled
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.
 
Old 10-16-2009, 03:52 AM   #2
sstendal
LQ Newbie
 
Registered: Apr 2008
Posts: 7

Rep: Reputation: 0
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).
 
Old 10-16-2009, 05:03 AM   #3
dyasny
Member
 
Registered: Dec 2007
Location: Canada
Distribution: RHEL,Fedora
Posts: 995

Rep: Reputation: 115Reputation: 115
could be something specific to windows7 - the security changes since XP are sometimes a real bugger to work with
 
Old 10-16-2009, 06:35 AM   #4
j1alu
Member
 
Registered: Apr 2009
Distribution: debian gnu/linux
Posts: 798

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by sstendal View Post
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.

Last edited by j1alu; 10-16-2009 at 06:36 AM. Reason: typo, the one i found :-)
 
Old 10-16-2009, 06:45 AM   #5
dyasny
Member
 
Registered: Dec 2007
Location: Canada
Distribution: RHEL,Fedora
Posts: 995

Rep: Reputation: 115Reputation: 115
Quote:
Originally Posted by j1alu View Post
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
 
Old 10-16-2009, 06:54 AM   #6
j1alu
Member
 
Registered: Apr 2009
Distribution: debian gnu/linux
Posts: 798

Original Poster
Rep: Reputation: Disabled
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
 
Old 10-16-2009, 09:10 AM   #7
j1alu
Member
 
Registered: Apr 2009
Distribution: debian gnu/linux
Posts: 798

Original Poster
Rep: Reputation: Disabled
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).

Last edited by j1alu; 10-16-2009 at 09:14 AM.
 
Old 10-16-2009, 09:36 AM   #8
dyasny
Member
 
Registered: Dec 2007
Location: Canada
Distribution: RHEL,Fedora
Posts: 995

Rep: Reputation: 115Reputation: 115
Quote:
Originally Posted by j1alu View Post
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
adding Fedora 10 to dual boot with Win7? lenny45 Fedora 11 10-19-2009 12:04 AM
How does Win7 stack up against Fedora 11? bjrogersIV Linux - Newbie 21 09-26-2009 08:45 AM
[SOLVED] No GRUB bootscreen after mint4win install on Win7 Leon14344 Linux Mint 4 09-08-2009 10:39 PM
Installing win7 on a second hard disc. glore2002 Debian 9 08-16-2009 03:06 PM
Upgrading VBox 2.0.2 on Fedora 9 to VBox 2.0.6 fcquayso Linux - Newbie 2 12-10-2008 04:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 10:11 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration