Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

share|improve this question
add comment

migrated from stackoverflow.com Jun 15 '10 at 16:38

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

2 Answers

Obviously you can copy and paste text, if you are talking source code. cat > MyFile.java 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:

open host.name

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:

put MyFile.java

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
add comment

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
1  
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
add comment

Your Answer

 
discard

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