EzDevInfo.com

winscp interview questions

Top winscp frequently asked interview questions

FTP client on windows that save session password in encrypted text [closed]

Filezilla or WinSCP save password in plain text which is unsecured on public machines. Is there any FTP client can save and encrypt password so that people using it only can access to FTP but not able to see password? Thanks!


Source: (StackOverflow)

SSH as Normal User --> SU --> SCP as Root

I'm on a Win7 box connecting to a linux server.

From reading: http://winscp.net/eng/docs/faq_su it looks like I need to open my SCP connections as the particular user.

When I connect via SSH, I can use su and then see all the files I need on the system.

I would like to know if there is a program I can use that will allow me to connect via SSH and then open an SCP connection with those elevated privileges. I would prefer something with a GUI, such as WinSCP.


Source: (StackOverflow)

Advertisements

Is there an rsync-like mode for WinSCP (or a similar tool)?

I need to be able to do a periodic sync of content off my Windows 7 x64 laptop to my offsite CentOS 6 webserver.

Is there a tool/mode like rysnc for WinSCP or similar?

For a variety or reasons, Dropbox is not an option here.


Source: (StackOverflow)

How to change user in WinSCP?

I'm using WinSCP to access Unix computers. How can I change user after I have logged into a Unix server using WinSCP?

E.g. I have personal account in Unix computer A. I can log into this computer using PuTTY and then change user to root user

$sudo /usr/bin/su - rootuser

How can I do the same thing using WinSCP? I don't know the password for rootuser.


Source: (StackOverflow)

WinSCP screws up line breaks in files – how do avoid?

I'm getting pretty sick of how WinSCP screws up line breaks.

this is line 1
this is line 2

Gets turned into

this is line 1

this is line 2

I could just use FileZilla for FTP and Putty for SCP (I think putty can handle that) but, that's rather annoying. How can I mitigate this problem?


Source: (StackOverflow)

WinSCP - How do I use Putty with X forwarding?

How do I setup up Putty to use X forwarding when opened by WinSCP? Thank you much!


Source: (StackOverflow)

Can I use WinSCP in read-only mode

I use WinSCP to view a file system over FTP.

Most of the time, I only wish to view files on the file system - but I do occasionally need to modify or delete files.

Is there a setting in WinSCP (or any other common Windows FTP clients) that can let me choose whether to access an FTP file system with read-only or read-write permissions.

This will allow me to avoid any accidental changes to the FTP file system.

If I'm asking the question in the wrong way, apologies - I guess the most general phrasing is "how can I view an FTP file system without write permissions?" But I am pretty tied to WinSCP, so the ideal is a solution involving that.


Source: (StackOverflow)

Where does WinSCP store site's password?

Where does WinSCP store site's information or password? I can't find it under Documents and Settings...


Source: (StackOverflow)

How do I copy files into `/var/www` with WinSCP?

When I try to place my web files into /var/www in apache on my ec2 Ubuntu instance it is giving me an error stating that I don't have permission.

Permission denied.
Error code: 3
Error message from server: Permission denied
Request code: 3

How do I give myself permission to do this or what is the best way to copy files to /var/www with WinSCP?


Source: (StackOverflow)

Linux: Continuously synchronize files, one way

Scenario: An IDE is set up on a Linux desktop box, editing PHP files locally. Every time I save a file, I want this change to appear on the linux server where Apache is running. The server has ssh (and samba and nfs for that matter).

As a reference, when I edited files on Windows, I finally came over WinSCP as the exact tool I needed - WinSCP have just this feature present, with initial synch and then continuous update, using the filesystem watch service: "Keep Remote Directory up to Date".

On Linux, one could argue that sshfs could be employed to sidestep the need for synchronization entirely. On windows, a samba-share would do the same. However, I want the IDE to work with local files (on a SSD disk!), not having to go over the network to do PHP indexing and whatnots, which takes ages.

But sshfs might be a part of the solution nevertheless - so that the continuous synchronization just needed to be done between two local directories.

Any ideas or pointers?


Source: (StackOverflow)

Dropbox-like client for FTP? [closed]

Many of my users have their files on one big FTP server.

PROBLEM: They can not use their files while not connected to the Internet.

QUESTION: Is there a Dropbox-like software for FTP?

  • When connected, pushes local changes to the server
  • When connected, polls the server every n minutes to pull changes
  • Cross-platform (Linux, Mac, Windows, maybe Android?)
  • Preferably open source
  • Dropbox-like UI (icon in system tray showing: disconnected, connected, syncing). For instance, SparkleShare is like DropBox for Git. Unfortunately they don't support FTP.
  • Ideally, starts automatically at boot or login

Just to make it clear: I am not looking for an online service that provides FTP access, but for a client-side software that can synchronize local files with a FTP URL (wherever hosted) when connected to the Internet.

FTPbox is nearly perfect, the only problem is that it is Windows-only.

WinSCP is good but its UI is too big. No need to show remote files, only sync them to local. The only UI would be the tray icon and a small URL/password configuration dialog.

It could look similar to this:

enter image description here


Source: (StackOverflow)

Tailing a File over FTP

I am attempting to access large log files on a remote server from my Windows desktop. I only have FTP access to this remote machine, not SSH access.

At the moment, I'm using WinSCP to pull the entire file down over FTP. This means I have to transfer the full file every time. However, given it's a log file I am likely to only need the last few lines.

This is particularly frustrating, as my bandwidth is severely limited, so transferring the entire file takes a few minutes.

If I had shell access this could easily be achieved by using something like tail -100 to obtain the last 100 lines.

I would like to find a solution to perform this via FTP. Note that it does not have to be a continuous tail, just a one-off would be sufficient.


Source: (StackOverflow)

Automatically change ownership using WinSCP?

I saw several threads about having issues with unexpected file permissions after file upload. I tried their solutions with no luck, I have to raise the problem in my way.

I run Nginx as nobody:nogroup on Debian 6. I changed the root web folder /usr/share/nginx/html to nobody:nogroup. Now I use WinSCP to upload file to the machine , but I use root account. If I create a new directory or update a new file, the ownership would be root:root. I am new to Linux world, I currently open a shell to change ownership of wwwroot after I have uploaded something to my server.

What is the best practice to upload file as root, but keep files and directories nobody:nogroup? Shall I set a password to account nobody and use this account to upload files?


Source: (StackOverflow)

FreeSSHd + WinSCP: "Server refused public-key signature despite accepting key!"

I'm trying to gain access to my Windows 2008 R2 server via SSH. I have a Remote Desktop connection, but I need to upload my files to the server. For SSH servers on the Windows server, I've tried Cygwin+OpenSSH, but that only starts around one in twenty times that I try it, so I've installed FreeSSHd and start it up manually. FreeSSHd generated a private key called "RSAKey.cfg" when I installed it, and I tried copying this into a file and converting it to .ppk using PuTTYgen on my PC so that it might work with WinSCP or the FileZilla client. I made a user that can use Shell, SFTP, or Tunnel, and is set to authenticate with public key authentication, but when I try to login as SFTPuser@[IPAddress], I get the following error in WinSCP:

Server refused public-key signature despite accepting key!

Questions:

  1. What does this mean?
  2. What is the correct procedure for getting a matching public/private key pair to work with each other in FileZilla + WinSCP?

Source: (StackOverflow)

Is putty a less secure service than winSCP?

For some reason I have gotten the feeling that somehow the program, "putty" could be less secure than the other SSH program I use to remotely connect to my server, normally I use WinSCP. Is putty any less secure than WinSCP or vice versa? I am incredibly inexperienced in all things server/web/security related, thats why I thought it wouldn't hurt to ask.

I needed to connect to my remote server using a terminal which could enter input requested by the server, something that WinSCP would not allow. This is because I needed to configure a .htpasswd file to restrict casual users from accessing my home directory, or any directory that I do not want them to access for that matter. My university which hosts this server suggests that I use WinSCP as I am a windows users, but WinSCP does not allow the specific command htpasswd -c .htpasswd path which creates the file at the location replaced by path and then requests my input to create the username/password, so I used putty instead.


Source: (StackOverflow)