LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-02-2008, 05:39 PM   #1
trist007
Senior Member
 
Registered: May 2008
Distribution: Slackware
Posts: 1,027

Rep: Reputation: 69
Some curious noob questions...


I setup netcat on my computer to listen on port 6666. Then I ran netstat -a and the output didn't show that nc was running on 6666. Why is that?

Also, when you download the source code for a program, does that mean you can compile that source code for any linux distribution? Could this source code be compiled for windows xp, if so, how? Of course, the source code only works for 1 cpu architecture correct? You can compile the source code for different cpu architectures?

I have a question about rsa and dsa encrypted keys to logon via ssh. When you generate a key on a computer, is the key generated for the MAC address of the interface being used? Or by some identifier in the computer? How does it work? Also, what's better rsa or dsa?
 
Old 09-02-2008, 06:33 PM   #2
nebben11
LQ Newbie
 
Registered: Sep 2008
Location: NWI USA
Distribution: Ubuntu and Cent OS for now
Posts: 8

Rep: Reputation: 0
#1. what program are you running that uses port 6666? and do you have the port open on your firewall?
Quote:
iptables -A INPUT -i eth0 -p tcp --sport 6666 -m state --state ESTABLISHED -j ACCEPT
iptables -L will list your current rules

#2. most of the time although some do require other programs to compile it, like devl files and etc.
#3. some programs can like C and C++ programs
#4. yes and no depends on the program
#5. same as above
#6. I maybe wrong but I dont think so refer to http://www.contracosta.edu/hpc/acade...er/SSH_LAB.pdf
#7. RSA is less secure than DSA but authenticates faster I would refer to http://www.linuxquestions.org/questi...lic-key-12593/ on this subject
 
Old 09-02-2008, 06:41 PM   #3
pinniped
Senior Member
 
Registered: May 2008
Location: planet earth
Distribution: Debian
Posts: 1,732

Rep: Reputation: 50
1. I don't know about netcat

2. With the source, you can build the code for any linux distro, but you need to be aware of the kernel and library versions running on that system as well as the ABI used; in some cases you need to set up a cross-compiler. Some programs can be built for WinXP as long as XP provides all the system calls used; you will need a cross-compiler and you need to install a set of compatibility libraries and tools on XP (like MinGW). The only source code that works for only 1 CPU class is assembler code; C and C++ are not tied to specific processor families, you just need to use the right compilers and tools to build the source code.

3. The keys are generated using random numbers and the selected algorithms; they have nothing to do with the MAC or any other hardware on the computer (except that the random number generators may be computer hardware or may take some random information from various bits of hardware). I can't comment on RSA vs DSA.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
I got a few noob questions trist007 Linux - Newbie 16 06-18-2008 02:28 PM
a few noob questions MaTrIx709 Debian 9 07-16-2005 11:52 AM
2 noob questions Thorium Linux - Newbie 4 07-15-2005 09:36 AM
Alot of questions for a very curious newb madh@ter Linux - Newbie 5 08-19-2004 02:08 PM
some noob questions WARHEAD Slackware 7 02-29-2004 02:10 PM


All times are GMT -5. The time now is 04:04 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration