If it's possible for your use-case, create an unprivileged user, give it read/write permissions only to specific areas of the filesystem, and use this account to log in with WinSCP. Private keys are resistant to brute-force attacks. Allowing root login on the server, combined with password authentication, greatly increases the risk of someone (or something, such as a scanning bot) successfully brute-forcing your password and compromising your instance. It is however recommended to disable password logins, at least for root, and allow only key-based authentication for this user, through a directive such as PermitRootLogin without-password added to the SSH daemon configuration file. In most cases, this will be "root", since it's the first user available on a Linux machine and has permissions to read/write files in all locations. User name: When connecting through the SFTP protocol, here, you fill in the username you're currently using to log in through SSH. "JohnSmith" will not work if the user is named "johnsmith" on your instance and vice versa. For other protocols, such as WebDAV, the default port will be different, for example 80. Port number: In this case, the port on which the SSH daemon on your instance is configured to listen on. If you've already set up a domain name (such as ) to point to this instance, you can also use that. In most cases you will fill in the external (Internet) IP address of your instance here (such as "203.0.113.0"). Host name: This can be misleading, since instead of names, you can also enter numbers. This allows you to read something in the middle of a 10GB file, without downloading the whole file to your computer. WebDAV works faster when dealing with lots of small files and it also supports reading file blocks selectively. SFTP is good enough for most purposes, but if you often need to download/upload hundreds or thousands of files at a time, you might want to configure a WebDAV server in the future and connect through that protocol. Log In with Username and Passwordįile protocol: we'll use SFTP since it's available out of the box on the server. If you need to log in with a private key, you have to fill in all of the details mentioned below, with the exception of the Password field. In the next section you'll learn how to fill in the input fields to log in with an username and password. When you first open WinSCP, the login manager will appear, where you can fill in the connection details to your Alibaba Cloud ECS instance(s).ĭepending on how you've setup your instance, the login method will be identical to the one you're currently using to connect with your SSH client (such as PuTTY), either with an username and password or username and private key. Each step is well explained in the install wizard interface. Two panels, side by side, allow a faster and more efficient workflow than "Explorer" style.Ĭlick on Next > until the setup is complete. In the next step, we'll choose the Commander user interface style. We will do a Typical installation here since we want all the features available. After the download has finished, run the installer. Scroll down until you find the link to the setup executable. How to Install WinSCPĬlick on the following link to visit WinSCP's download page. In this tutorial we will learn how to use WinSCP, a client application that supports various transfer protocols such as FTP, SFTP, WebDAV, S3, etc. Since the ECS instance already includes an SFTP server, that means we need an SFTP client to connect to it. SFTP is an acronym for SSH (or Secure) File Transfer Protocol. Fortunately, all of the popular Linux distributions come pre-configured on Alibaba Cloud Elastic Compute Service (ECS) instances with an SSH daemon, which includes support for secure file transfers through SFTP. If you use Windows on your local computer, as you work with remote Linux servers, you will occasionally need to transfer files between these two points. Tech Share is Alibaba Cloud's incentive program to encourage the sharing of technical knowledge and best practices within the cloud community. By Alexandru Andrei, Alibaba Cloud Tech Share Author.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |