Changes between Version 3 and Version 4 of Remote Logging (Shell Servers)
- Timestamp:
- 04/13/06 13:40:50 (20 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Remote Logging (Shell Servers)
v3 v4 2 2 = Remote Access = 3 3 4 == S SH (Secure Shell) ==4 == Secure Shell (SSH) == 5 5 To access your workstation remotely, use ssh. A good method of securing 6 6 your workstation as well as the overall network is to generate a [wiki:"ssh public key authentication" ssh key-pair] … … 21 21 Note, if this is your first access to the remote host, then you're unlikely 22 22 to have its public key, and hence ssh will inform you of this e.g. 23 The authenticity of host ' mraos.ra.phy.cam.ac.uk (131.111.48.8)' can't be23 The authenticity of host 'pirates.phys.columbia.edu (128.59.168.143)' can't be 24 24 established. 25 25 {{{ … … 30 30 The public key of the remote host has been added to the file ~/.ssh/known_hosts in your account. 31 31 }}} 32 As a result this message will not be displayed in future ssh connections to this host.32 As a result, this message will not be displayed in future ssh connections to this host. 33 33 As shown in a section above, you can generate your own public key(s) 34 34 between your different accounts using ssh-keygen, and overcome the problem … … 36 36 public key from the account on one system to the ~/.ssh/authorized_keys file on the other. 37 37 Transfering public keys between accounts can simply be done via email, as the public key 38 (e.g. ~/.ssh/identity.pub for ssh 1 protocol) is just a long line of text, which 39 can then be extracted from the mail message (make sure to preserve its line length) 40 and added to the appropriate file. 38 is just a long line of text, which can then be extracted from the 39 mail message (make sure to preserve its line length) and added to the appropriate file. 41 40 42 41 == Using sftp == … … 50 49 When sftp is ready to accept commands, it will display a prompt sftp>. 51 50 In the sftp manual page there are a complete list of the commands which the user can use: 52 quit 51 52 === quit === 53 53 Quits from the application 54 cd directory 54 55 === cd directory === 55 56 Changes the current remote working directory. 56 lcd directory 57 58 === lcd directory === 57 59 Changes the current local working directory. 58 ls [ -R ] [ -l ] [ file ... ] 60 61 === ls [ -R ] [ -l ] [ file ... ] === 59 62 Lists the names of the files on the remote server. 60 lls [ -R ] [ -l ] [ file ... ] 63 64 === lls [ -R ] [ -l ] [ file ... ] === 61 65 Same as ls, but operates on the local files. 62 get [ file ... ] 66 67 === get [ file ... ] === 63 68 Transfers the specified files from the remote end to the local end. 64 69 Directories are recursively copied with their contents. 65 put [ file ... ] 70 71 === put [ file ... ] === 66 72 Transfers the specified files from the local end to the remote end. 67 73 Directories are recursively copied with their contents. 68 mkdir dir (rmdir dir) 69 Tries to create (destroy) the directory specified in dir. 74 75 === mkdir dir (rmdir dir) === 76 Tries to create (delete) the directory specified in dir. 77 70 78 e.g. while logged into cass06 get /etc/inet/hosts from cass56: 71 79 {{{
