Language: 日本語 | English
This article provides you with information on how to use CIS servers over SSH/SCP.
By using SSH/SCP, you can access your home directory.
Host | ID | Available for | Purpose |
---|---|---|---|
ssh.cis.k.hosei.ac.jp | CIS ID | Students/Teachers | File Access / Computing |
SUBDOMAIN.cis.k.hosei.ac.jp(*) | projectXXX | Project Server users | Contents management on Project Server |
* Replace SUBDOMAIN with the subdomain you applied
* Use projectXXX as ID to log in Project Server
* Access CIS User Tools with accounts if you want to change your Password
For each undergraduate students, the maximum amount of resources available for use are limited as listed below.
Although there are no limits set for graduate students and other users (professors and staff members), please do not use much resources as the server is shared by everyone.
Item | Limit |
---|---|
Maximum amount of memory per process | 1024 MB |
Maximum number of processes to run at a time | 32 processes |
These limitations may be reviewed as needed.
This article is written based on the following environment.
Laptops lent from CIS are shipped with these programs installed (though the version may be different).
SSH/SCP is the secure remote shell environment/file transferring method based on the public key encryption.
When using public key encryption, you need your own private/public key pair.
Launch MacBook Terminal App.
You can launch Terminal by [LaunchPad] > [Other] > [Terminal].
Run ssh-keygen command to generate a private/public key.
This time, we generate an Ed25519 key since it's recommended now.
% ssh-keygen -t ed25519 Generating public/private ed25519 key pair. Enter file in which to save the key (/Users/USERNAME/.ssh/id_ed25519):
Identify the filename to store private key. If you want to keep the default settings, just hit Enter without typing anything.
Enter passphrase for "/Users/USERNAME/.ssh/id_ed25519" (empty for no passphrase): Enter same passphrase again:
Enter passphrase of the private key. Don't forget the passphrase. It's used when you connect to servers.
After generating the keypair, Terminal will show the path of the private/public key and signature of the key.
Your identification has been saved in /Users/USERNAME/.ssh/id_ed25519 Your public key has been saved in /Users/USERNAME/.ssh/id_ed25519.pub The key fingerprint is: SHA256:12lsdypNSlaQKCEHo0qmMIH3kBkwjMc6pBY7fXQtpEI USERNAME@Mac.local The key's randomart image is: +--[ED25519 256]--+ |Bo.E =o+. ... | |o*O o.*... .. | |=+*+o.. .. . | |=O oo. o o | |o.o . S . O o .| | . = = o | | o o | | . | | | +----[SHA256]-----+
Now you have your own private and public key pair.
Never transfer your Private key over the network (like FTP or File Sharing).
Use removable media when you need to move your key.
Before connecting to the server, you need to register your Public key to your CIS account.
This section describes about connecting to the remote server using ssh command.
We'll use ssh.cis.k.hosei.ac.jp as an example. Replace the hostname with the server you're connecting to.
When connecting, please use your CIS account username (the USERNAME part).
$ ssh -i /path/to/key USERNAME@ssh.cis.k.hosei.ac.jp
When you connect to the server for the first time, you will be asked whether the server's host public key is trustworthy and whether you want to register it for connection.
You MUST confirm that the connection destination is not fraudulent if you know the server's host public key in advance.
In the case of Project Server, you can view the server's host public key on [公開鍵変更] page in CIS User Tools.
This section describes about transferring (uploading and/or downloading) files with the remote server over SCP.
We'll use ssh.cis.k.hosei.ac.jp as an example. Replace the hostname with the server you're connecting to.
$ scp file USERNAME@ssh.cis.k.hosei.ac.jp:~/
$ scp -r USERNAME@ssh.cis.k.hosei.ac.jp:~/dir ./