IMPORTANT NOTE: Your data will be available to the observing program PI on the Keck Observatory Archive (KOA) a day or two after the observing run. Therefore, there is no need for you to download your data on your observing night, unless you wish to.
If you wish to download your data on your observing night, you can use either SCP, SFTP, or FTP. The prefered methods for transfering data are SCP and SFTP, because they are more secure.
Which computer to use depends on the instrument. Some recommendations are:
If you try to SCP or SFTP to one of our Solaris machines from a modern computer, the trasfer may fail due to incompatibilities in the SSH key exchange method. A workaround to this issue is to add the following aliases to your ~/.aliases, ~/.cshrc or ~/.bashrc, depending on the type of shell on your local computer (note the bash syntax in this example):
alias kscp="scp -o KexAlgorithms=+diffie-hellman-group1-sha1 -o HostKeyAlgorithms=+ssh-dss -c 3des-cbc"
alias ksftp="sftp -o KexAlgorithms=+diffie-hellman-group1-sha1 -o HostKeyAlgorithms=+ssh-dss -c 3des-cbc"Then you can use the instructions for the SCP Procedure at Keck via Laptop or scp procedure from outside Keck by replacing scp with kscp. You can use the instructions for Using SFTP to transfer to a laptop with no SFTP server by replacing sftp with ksftp.
WARNING: If you use thi method, the transfer can be terminated any time after sunrise, if the VNC server or the terminal where you initiated the transfer needs to be shut down.
Please follow these steps to transfer data from a Keck machine to an outside machine using scp:
scp *.fits youruser@yourcomputer:YourLocalDataDir/
Observers can copy data directly to their laptops while at Keck. In this case, it is best to initiate the transfer from the laptop in order to avoid having to figure out the address of the laptop. If you have the scp program installed on your laptop, please follow these steps to pull data onto your laptop from a Keck machine:
scp -r account@host:/path/ .where account is the name of your observing account, e.g. deimos7, host is the name of the instrument host or VNC server, e.g. deimos or polo, and path is the pathname to your data. For example, to copy data from the directory /s/sdata1004/deimos8/2020dec15 as user deimos8, enter:
scp -r deimos8@deimos.keck.hawaii.edu:/s/sdata1004/deimos8/2020dec15 .
Observers can copy data to or from Keck from external machines (whether laptops or workstations) using scp. Please follow these steps to copy data from Keck computers to your external machine:
scp -r account@host:/path/ .where account is the name of your observing account, e.g. deimos7, host is the name of the instrument host or VNC server, e.g. deimos or polo, and path is the pathname to your data. For example, to copy data from the directory /s/sdata1004/deimos8/2020dec15 as user deimos8, enter:
scp -r deimos8@deimos.keck.hawaii.edu:/s/sdata1004/deimos8/2020dec15 .
WARNING: If you use thi method, the transfer can be terminated any time after sunrise, if the VNC server or the terminal where you initiated the transfer needs to be shut down.
Please follow these steps to transfer data using SFTP:
sftp youruser@yourcomputer
put *.fitsto transfer all of the FITS images in the directory.
lcd directoryto move to another directory on the Keck machine, and use put again to copy the data.
IMPORTANT NOTE: Most modern Linux computers at Keck do not have FTP, e.g. deimos or nirc2. However, there are still some old Sun stations that have FTP, e.g. sshserver2. If you wish to use FTP from one of the old Sun stations:
open my_home_siteto open an FTP connection to your home site. Provide the proper account name and password to log in.
put *.fitsto transfer all of the FITS images in the directory.
lcd directoryto move to another directory on the Keck machine, and use put again to copy the data.
Please follow these steps to transfer data using SFTP from your computer to one of the Keck host computers:
sftp username@keckhostname.keck.hawaii.eduwhere keckhostname will depend on the instrument. Some examples of valid hosts are polo (DEIMOS), nirspecserver (NIRSPEC), deimos (DEIMOS), nirspec (NIRSPEC), nirc2 (NIRC2) or sshserver1.
get *.fitsto transfer all of the FITS images onto your local directory.
cd directoryto move to another directory on the Keck machine, and use get again to copy the data.