0

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

0

2 Answers 2

1

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.

0

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

2
  • 1
    PuTTY comes with pscp and psftp since long ago. Jun 15, 2010 at 20:06
  • That's good news!
    – mcandre
    Jun 16, 2010 at 15:28

You must log in to answer this question.