Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a Linux server and I want to connect to it with a remote computer, how can I put a password for more security please?

I use netcat to connect to my server ! thanks a lot ...

share|improve this question
2  
Sad to say, you're unaware of how TCP/IP works. What you are asking for is impossible without writing your own custom stack. –  Wesley Aug 8 '12 at 19:50
add comment

1 Answer 1

Updated.

  • SSH tunnel. can add authentication and confidentiality to a communications protocol that lacks either.

  • socat - A sufficiently clever person can use socat to "wrap" some existing service and add prompting for a password.

  • scp - To move files securely I'd use secure-copy

share|improve this answer
    
thanks but I want just to open a port and connect to it via password. –  Sam Aug 8 '12 at 19:00
    
Your use case may be too vague to answer. Maybe you can update the Q and elaborate a bit - what's listening at the server end? –  RedGrittyBrick Aug 8 '12 at 19:05
    
Actually I'm an owner of a linux server and, we have some files that must be copy on it from the different locations,I opened a port on it and it works very well , but it's not secure, because via a simple port scanner the hackers can be access on it :( –  Sam Aug 8 '12 at 19:09
1  
What service is listening on that port? –  RedGrittyBrick Aug 8 '12 at 19:17
5  
@MikeRedford as RedGrittyBrick alludes to, you can't just "open a port" - something has to be listening there. That "something" (FTP server? SSH server? rsync server? Web server?) should be what asks the user for a password, checks it against an authorized access list, etc... –  voretaq7 Aug 8 '12 at 19:54
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.