SSH Examples . . . . . . . . . . . . . . . . . .
Use the command line interface (not X Windows) on Autarch.
Assume your account name on autarch is jcleaver but your account on your OS X box is june. This works very much like telnet.
1. Open Terminal (Applications->Utilities).
2. Enter "ssh jcleaver@autarch".
3. Enter your password when prompted. If this is your first time to connect, you will get a message talking about security and keys and if you'd like to continue. Respond with yes.
4. Now the ssh connection will behave just like a telnet connection.
Run matlab on autarch.
Assume your account name on autarch is jcleaver but your account on your OS X box is june.
1. You must have XDarwin installed and running on your machine first and using it in conjunction with either Orboros or mwm is highly recommended.
2. Open X Windows on your Mac.
3. Enter "ssh -X jcleaver@autarch" (the X tells autarch you want to use X windows across your connection).
4. Enter your password when prompted. If this is your first time to connect, you will get a message talking about security and keys and if you'd like to continue. Respond with yes.
5. Enter "matlab". After a few seconds, a matlab window should open on your machine.
6. You don't need to do any of the 'xhost +autarch' or 'setenv DISPLAY' tasks--in fact, doing so makes your connection less secure.
Copy a directory called "myscans" which is in your home directory on autarch to your local machine.
Assume your account name on autarch is jcleaver but your account on your OS X box is june.
1. Open Terminal (Applications->Utilities).
2. Enter "scp -r jcleaver@autarch:myscans .". The -r means to copy recursively all of the files under the directory name given. This will recreate the same file layout in the target location--a directory called "myscans" with the same directory and file structure under it where you tell the command to put the copy. The dot at the end of the command is just the Unix way of saying "in the current directory."
3. Enter your password when prompted. If this is your first time to connect, you will get a message talking about security and keys and if you'd like to continue. Respond with yes.
4. The screen will display the copy progress for each file being copied.
Copy a directory called "processed" from your Mac into your home directory on autarch.
Assume your account name on autarch is jcleaver but your account on your OS X box is june.
1. Open Terminal (Applications->Utilities).
2. Enter "scp -r ~june/processed jcleaver@autarch:". The -r means to copy recursively all of the files under the directory name given. This will recreate the same file layout in the target location--a directory called "processed" with the same directory and file structure in your home directory on autarch.
3. Enter your password when prompted. If this is your first time to connect, you will get a message talking about security and keys and if you'd like to continue. Respond with yes.
4. The screen will display the copy progress for each file being copied.
Copy a directory called "backmeup" from your home directory on bmc to a folder on autarch called "backups" from your Mac OS X machine.
Assume your account name on autarch is jcleaver but your account on bmc is june.
1. Open Terminal (Applications->Utilities).
2. Enter "scp -r june@bmc:backmeup jcleaver@autarch:backups"
3. Enter your passwords when prompted. Both autarch and bmc will prompt you. If this is your first time to connect to either machine, you will get a message talking about security and keys and if you'd like to continue. Respond with yes.
4. The screen will display the copy progress for each file being copied.
| |
|
Page created and maintained by Eric Zylstra [11.14.02]
|