开发者

SFTP to EC2 Windows Instance

开发者 https://www.devze.com 2023-02-12 05:41 出处:网络
So i\'ve setup a windows instance, but can\'t seem to FTP into it.After much research, i\'ve discovered SFTP is the way forward.

So i've setup a windows instance, but can't seem to FTP into it. After much research, i've discovered SFTP is the way forward.

I've setup my security group, adding the following rule: SSH tcp 22 22 0.0.0.0/0

Using the public DNS name supplied in the console, i try to SFTP in using Filezilla & Cyberduck, but they just time out.

I know the next step is sorting out the key pairs, but i doubt that'll do me any good if my server isn't even accepting connections.

Any idea what i've missed?

EDIT: Looking at the Filezilla logs, its looks like the server isn't responding to the connection requests...

12:51:29    Status: Connecting to ec2-122-248-248-178.ap-southeast-1.compute.amazonaws.com...
12:51:29    Response:   fzSftp started
12:51:29    Command:    keyfile "D:\Users\berling\Lacie Fuj Sync\Freelancing\AWS_Public_Key.ppk"
1开发者_如何学编程2:51:29    Command:    open "greg@ec2-122-248-248-178.ap-southeast-1.compute.amazonaws.com" 22
12:51:49    Error:  Connection timed out
12:51:49    Error:  Could not connect to server

Do i need to install an SFTP/SSH server on the server? I was under the impression it was already setup for Amazon servers for some reason... am i wrong about that?


The rule you have set up - SSH tcp 22 22 0.0.0.0/0 - where is that? Your firewall, or at the EC2 end? And why 0.0.0.0? I would recommend using real IP addresses.

Check why the connection is timing out - is SFTP getting past your firewall? Is it getting blocked at the EC2 end - firewall or network logs will be your friend here.

Have you confirmed it is timing out before starting the handshake? Check SSH logs.

Do you have an SFTP server running and configured correctly? Some require all configs to be set before they are happy - your comment that you haven't yet sorted key pairs makes me wonder if this one only accepts certificate auth.

Check those and see how you do.


Install WinSSHD on your EC2 instance. It provides RDP, SFTP, Console access - all over port 22.

Install Tunnelier on your client.


I haven't tried this particular package, but Cygwin, and Services for Unix provide OpenSSH version. Copssh claims to install openssh, and allow migration/configuration of users:

http://sourceforge.net/projects/sereds/files/Copssh/4.0.4/

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号