Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How do you copy a class (from intelliJ) on to UNIX (using putty)

share|improve this question

migrated from Jun 15 '10 at 16:38

This question came from our site for professional and enthusiast programmers.

Obviously you can copy and paste text, if you are talking source code. cat > is useful on the UNIX side.

If you want to transfer files, use psftp included with PuTTY. Your server will need to be running an accessible sftp server.

Connect with:


Enter you login name and password at the prompts.

Show remote directory location with pwd and local location with !pwd.

Change remote directory with cd and local with lcd.

Upload a file with:


mput is also useful for transferring multiple files. Use help to get a list of commands and help command to get help on a specific command.

share|improve this answer

PuTTY may not be able to copy files. Use OpenSSH for Windows instead. This contains scp, a program for copying files remotely.

share|improve this answer
PuTTY comes with pscp and psftp since long ago. – grawity Jun 15 '10 at 20:06
That's good news! – mcandre Jun 16 '10 at 15:28

Your Answer


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