Image
 
linkedin_logo.png rss_logo.jpg
twitter_logo.png youtube_logo.jpg
Latest Additions
 
EH-Net Login
Welcome Guest.






Lost Password?
No account yet? Register
Who's Online
We have 35 guests online
 
Advertisement

You are here: Home arrow Resourcesarrow Toolsarrow Need some help using PuTTy.
EH-Net
May 25, 2013, 08:48:41 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Go back to The Ethical Hacker Network Online Magazine Home Page
 
   Home   Help Calendar Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Need some help using PuTTy.  (Read 11428 times)
0 Members and 1 Guest are viewing this topic.
H4TT1fn4TT
Jr. Member
**
Offline Offline

Posts: 54



View Profile
« on: February 27, 2011, 07:32:14 AM »

I am trying to use PuTTy in Windows to connect to my Backtrack box that I got running in Oracle VM Virtual Box. However when I try to connect with the IP that is given to the box I get an error.

Quote
Network error: Connection reused.

Any ideas on what I should try to get it to work?

* started the SSH server in Backtrack, still same error.
« Last Edit: February 27, 2011, 07:37:57 AM by H4TT1fn4TT » Logged

"The quality of programmers is a decreasing function of the density of go to statements in the programs they produce."
mesho
Newbie
*
Offline Offline

Posts: 24


View Profile
« Reply #1 on: February 27, 2011, 09:15:03 AM »

firstly, did you try to ping your backtrack box?

if it's not pingable! then i think the issue with backtrack firewall try to disable it and it will fix your issue.

if neither methods work i think the issue with the network configuration in VMware.

 Tongue
Logged
H4TT1fn4TT
Jr. Member
**
Offline Offline

Posts: 54



View Profile
« Reply #2 on: February 27, 2011, 10:19:17 AM »

As far as I am aware the firewall is disabled in Backtrack by default.

I will look into the other two thing.
Logged

"The quality of programmers is a decreasing function of the density of go to statements in the programs they produce."
Data_Raid
Full Member
***
Offline Offline

Posts: 165



View Profile
« Reply #3 on: February 28, 2011, 04:12:20 AM »

I'll ask the obvious first, just to be sure Smiley

Have you generated your SSH keys with the " sshd-generate " command?
Can you successfully start SSHD " /etc/init.d/ssh start " ?
Can you confirm that SSHD is listening " netstat -antp | grep sshd " ?

Logged

All men by nature desire knowledge.

Aristotle
TheXero
Full Member
***
Offline Offline

Posts: 112


Try Harder!


View Profile WWW
« Reply #4 on: February 28, 2011, 05:51:30 AM »

Most likely that the SSH Daemon is not running

If it is, you're likely to have a networking issue

What network adapter type have you given it? Host only? Bridged etc
Logged

hell_razor
Jr. Member
**
Offline Offline

Posts: 90


View Profile
« Reply #5 on: February 28, 2011, 09:47:24 AM »

You need to generate ssh keys in BackTrack then restart the service.

service ssh stop

/usr/bin/sshd-generate

service ssh start
Logged

A+, Network+, Server+, CISSP, GSEC, GCIH, GPEN, GCIA, GISP, GCFW
H4TT1fn4TT
Jr. Member
**
Offline Offline

Posts: 54



View Profile
« Reply #6 on: February 28, 2011, 10:17:02 AM »

I did create a certificate and started the SSH server (I should had mentioned that, sorry).

What network adapter type have you given it? Host only? Bridged etc
I am pretty new to it all and am trying to learn from scratch you could say. Sad to say knowing that, that I have no idea how to check up what you just asked. If there is a default I left it at that.
Logged

"The quality of programmers is a decreasing function of the density of go to statements in the programs they produce."
hell_razor
Jr. Member
**
Offline Offline

Posts: 90


View Profile
« Reply #7 on: February 28, 2011, 10:39:21 AM »

Also, the network is not turned up when you start backtrack.  Perhaps that is missing?

service network start

or

ifconfig eth0 && dhclient3 eth0
Logged

A+, Network+, Server+, CISSP, GSEC, GCIH, GPEN, GCIA, GISP, GCFW
chrisj
Hero Member
*****
Offline Offline

Posts: 1163


View Profile WWW
« Reply #8 on: February 28, 2011, 11:03:52 AM »

I did create a certificate and started the SSH server (I should had mentioned that, sorry).

What network adapter type have you given it? Host only? Bridged etc
I am pretty new to it all and am trying to learn from scratch you could say. Sad to say knowing that, that I have no idea how to check up what you just asked. If there is a default I left it at that.

I think the default is to nat the box. What you need to do, is shut the backtrack box down. Go into the window where you would select and start it. You'll want to go to the settings > network tab, and change that to bridge, and then assign it to one of the ethernet cards you want to use (one of the actual ones on the windows box).

Might have some of the steps above wrong, going from memory without access to VirtualBox from where I am.

But you'll have to shut the BT box down to make the changes.

Options are NAT, Bridged, HOSTonly (or something like that). There may be a disabled option too... but as I said, I can't remember exactly and can't check.

The documents used to be pretty good at that back before it was Oracle's, I don't know how they are now.
Logged

OSWP, Sec+
H4TT1fn4TT
Jr. Member
**
Offline Offline

Posts: 54



View Profile
« Reply #9 on: February 28, 2011, 11:21:19 AM »

Also, the network is not turned up when you start backtrack.  Perhaps that is missing?

No, but thanks for trying to help (/etc/init.d/networking start, was the one you where looking for).  Wink

Thanks Chrisj, I will look into it.
Logged

"The quality of programmers is a decreasing function of the density of go to statements in the programs they produce."
hell_razor
Jr. Member
**
Offline Offline

Posts: 90


View Profile
« Reply #10 on: February 28, 2011, 12:18:31 PM »

Also, the network is not turned up when you start backtrack.  Perhaps that is missing?

No, but thanks for trying to help (/etc/init.d/networking start, was the one you where looking for).  Wink

Thanks Chrisj, I will look into it.

While I used network instead of networking as it should be:

service networking start is pretty much the same thing as /etc/init.d/networking start and that is definitely not the same thing as:

ifconfig eth0 up && dhclient3 eth0

which I prefer since I do not need wicd started nor an attempt to bring up the entire plethora of network interfaces possible with bringing up networking as a whole (easier than modifying the interfaces since I change interfaces a lot depending on what I am doing).
Logged

A+, Network+, Server+, CISSP, GSEC, GCIH, GPEN, GCIA, GISP, GCFW
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Page created in 0.074 seconds with 22 queries.
 
Exclusive Deal

sansfire13_245x90_cw90.jpg
SANSFIRE 2013
June 15 - 22

5% Off w/ Code: EHN_5

SANS Deals 4 EH-Netters
5% OFF Any SANS Course in Any Format!
Coupon Code: EHN_5 Including SANS Rocky Mountain 2013 & SANS Boston 2013
Polls
Compared to this year, 2013 will be:
 
Recent Forum Topics
EH-Net News Feeds
Latest Additions
 
         
Advertisement

© 2013 The Ethical Hacker Network
Joomla! is Free Software released under the GNU/GPL License.