Hoffman2:Profile: Difference between revisions

From Center for Cognitive Neuroscience
Jump to navigation Jump to search
(Updated paths to account for switch from "home" to "project')
No edit summary
 
(12 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[Hoffman2|Back to all things Hoffman2]]
[[Hoffman2|Back to all things Hoffman2]]


In UNIX systems, there are certain configuration files that get executed every time you login.  If you are using the Bash shell (default), you have a file called <code>.bash_profile</code> which is processed when you log in.  In order to make the FMRI toolset available to you on Hoffman2 and so you can work well with others, we recommend that you follow the instructions in the [[Hoffman2:Profile#Basics|Basics]] section.  Read [[Hoffman2:Profile#Extras|Extras]] for some bells and whistles.
<blockquote style="border: solid red 2px; font-weight: bold; padding: 2px; background-color: lightgray;">This page is deprecated. Please see [[Hoffman2:Modules]] for more information about CCN-supported software on Hoffman2.</blockquote>
 
<!-- In UNIX systems, there are certain configuration files that get executed every time you login.  If you are using the Bash shell (default), you have a file called <code>.bash_profile</code> which is processed when you log in.  In order to make the FMRI toolset available to you on Hoffman2 and so you can work well with others, we recommend that you follow the instructions in the [[Hoffman2:Profile#Basics|Basics]] section.  Read [[Hoffman2:Profile#Extras|Extras]] for some bells and whistles.




==Basics==
==Basics==
You account has one last thing that needs to be edited before being usable.
Your account has one last thing that needs to be edited before being usable.


# [[Hoffman2:Accessing the Cluster#SSH - Command Line|SSH into Hoffman2]]
# [[Hoffman2:Accessing the Cluster#SSH - Command Line|SSH into Hoffman2]]
Line 111: Line 113:


== Changing Passwords ==
== Changing Passwords ==
Use the command below to change password. It will prompt you for your old password, and then the new password.
How to change your Hoffman2 password.
$ passwd
: [[Hoffman2:Changing Passwords]].
Changing password for user joebruin.
Please enter your current password:
Please enter your new password:
 


== Password-less Logins ==
== Password-less Logins ==
The steps below will show you how to login without typing your password every time!
Log in to Hoffman2 without typing your password every time.  
 
: [[Hoffman2:Password-less Logins]].
On your local computer:
a@A:-> '''ssh-keygen -t rsa'''
Generating public/private rsa key pair.
Enter file in which to save the key (/Users/a/.ssh/id_rsa): '''[ENTER]'''
Created directory '/Users/a/.ssh'.
Enter passphrase (empty for no passphrase): '''[ENTER]'''
Enter same passphrase again: '''[ENTER]'''
Your identification has been saved in /Users/a/.ssh/id_rsa.
Your public key has been saved in /Users/a/.ssh/id_rsa.pub.
The key fingerprint is:
3e:4f:05:79:3a:9f:96:7c:3b:ad:e9:58:37:bc:37:e4 a@A
 
Now use ssh to create a directory ~/.ssh as user on Hoffman2. (The directory may already exist, which is fine):
a@A:~> ssh user@hoffman2.idre.ucla.edu mkdir -p .ssh
user@hoffman2.idre.ucla.edu's password: '''[PASSWORD]'''
 
Finally append a's new public key to b@B:.ssh/authorized_keys and enter b's password one last time:
a@A:~> cat .ssh/id_rsa.pub | ssh user@hoffman2.idre.ucla.edu 'cat >> .ssh/authorized_keys'
user@hoffman2.idre.ucla.edu's password: '''[PASSWORD]'''
 
Now you can login to hoffman from local computer without a password!
a@A:~> '''ssh user@hoffman2.idre.ucla.edu'''
 


==External Links==
==External Links==
Line 150: Line 125:
*[http://www.cyberciti.biz/tips/understanding-linux-unix-umask-value-usage.html Better explanation of umask]
*[http://www.cyberciti.biz/tips/understanding-linux-unix-umask-value-usage.html Better explanation of umask]
*[http://www.cyberciti.biz/tips/howto-linux-unix-bash-shell-setup-prompt.html Coloration]
*[http://www.cyberciti.biz/tips/howto-linux-unix-bash-shell-setup-prompt.html Coloration]
*[http://en.wikipedia.org/wiki/ISO_8601 ISO 8601 Datetime format]
*[http://en.wikipedia.org/wiki/ISO_8601 ISO 8601 Datetime format] -->

Latest revision as of 17:57, 26 June 2017

Back to all things Hoffman2

This page is deprecated. Please see Hoffman2:Modules for more information about CCN-supported software on Hoffman2.