LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-17-2003, 04:44 PM   #1
Rex_chaos
Member
 
Registered: Aug 2001
Location: GD, GZ, China
Posts: 240

Rep: Reputation: 30
ssh and sftp help


hi all,
I have successfully installed the ssh on my server and i can aslo ssh to the remote machine. However, whenever I use the the psftp(which download from the putty site), it reports
"Network error : Connection refused"

Help!
 
Old 03-17-2003, 04:54 PM   #2
sqn
Member
 
Registered: Apr 2002
Distribution: Ubuntu, Arch, freeBSD, Slackware
Posts: 210

Rep: Reputation: 30
use the IP adress of your host, maybe its someting there misconfigurated

try dowloading the win32 ssh clinet. from www.ssh.org, or use the sftp from linux
 
Old 03-17-2003, 05:04 PM   #3
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
I'm assuming you are trying to get files off a Linux server using ssh from a windows client. You may want to look into WinSCP. I put together a little tutorial if you want to check it out here.
 
Old 03-17-2003, 05:07 PM   #4
Capt_Caveman
Senior Member
 
Registered: Mar 2003
Distribution: Fedora
Posts: 3,658

Rep: Reputation: 69
Did you add the ip address of the windows client to hosts.allow?
If not, you need a line that says: ssh: xxx.xxx.xxx.xxx
 
Old 03-17-2003, 06:10 PM   #5
Rex_chaos
Member
 
Registered: Aug 2001
Location: GD, GZ, China
Posts: 240

Original Poster
Rep: Reputation: 30
However, I am using openssh. I wonder if win32 ssh clinet from www.ssh.org is completely compatible with openssh.

To Capt_Caveman: I have read a document about rsh and ssh before and it told that rsh is very bad and insecure so I try ssh. I wonder if hosts.allow is a configuration file for rsh ????
 
Old 03-17-2003, 07:28 PM   #6
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
Okay this thread is getting more confusing by each post. Rex_Chaos, are you trying to copy files to your server or are you just trying to login to your server and have a shell?

If you are looking for a windows ssh client then use putty. If you are trying to upload/download files through ssh from a windows machine then use WinSCP.
 
Old 03-17-2003, 07:49 PM   #7
Rex_chaos
Member
 
Registered: Aug 2001
Location: GD, GZ, China
Posts: 240

Original Poster
Rep: Reputation: 30
Thanks for you help. I know what's wrong now. I setup my ssh with another port 220. So I must specify the port while connecting to sftp-server.

Thanks
 
Old 03-17-2003, 08:00 PM   #8
stickman
Senior Member
 
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
If you don't mind my asking, why did you use port 220 instead of 22?
 
Old 03-17-2003, 08:12 PM   #9
Capt_Caveman
Senior Member
 
Registered: Mar 2003
Distribution: Fedora
Posts: 3,658

Rep: Reputation: 69
> I have read a document about rsh and ssh before and it told that rsh is very bad and insecure so I try ssh. I wonder if hosts.allow is a configuration file for rsh.

hosts.allow is a system wide config file for the tcpwrappers program. Most apps like ssh, telnet, etc. check this file before allowing incoming connections. One of the most common mistakes in setting up servers is not adding entries to this file especially when you see a connection refused response from the server.

>Okay this thread is getting more confusing by each post
Have to agree with you there!
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
SFTP and SSH XaViaR Linux - Security 5 07-20-2005 10:18 AM
Ssh/sftp Disconnection basbosco Linux - Security 1 03-12-2004 01:49 PM
ssh sftp-server dtaju Linux - Security 5 02-23-2004 04:16 PM
ssh/sftp/telnet true_atlantis Linux - Newbie 2 12-11-2003 07:18 PM
sftp and ssh-keygen help please grayhost Linux - Newbie 2 06-26-2003 05:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:22 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