@@ -726,19 +726,11 @@ def _tf(arr): return arr
726726 if host in ('127.0.0.1' , 'localhost' ):
727727 cons .print (
728728 f'\n [dim]To view from your laptop/desktop, open a [bold]new terminal on your local machine[/bold] and run:[/dim]\n '
729- f'\n [bold]ssh -L { port } :localhost:{ port } <host>[/bold]\n '
730- f'\n [dim] Replace [bold]<host>[/bold] with whatever you normally pass to [bold]ssh[/bold] to reach this cluster.[/dim]\n '
731- f'[dim] This can be a full hostname (e.g. [bold]login-phoenix.pace.gatech.edu[/bold])[/dim]\n '
732- f'[dim] or an alias from your [bold]~/.ssh/config[/bold] (e.g. [bold]ssh -L { port } :localhost:{ port } delta[/bold]).[/dim]\n '
733- f'[dim] Then open [bold]http://localhost:{ port } [/bold] in your local browser.[/dim]\n '
734- f'\n [dim] [bold]2FA clusters:[/bold] if your cluster requires two-factor auth and you don\' t[/dim]\n '
735- f'[dim] want to authenticate twice, add [bold]ControlMaster[/bold] to your [bold]~/.ssh/config[/bold]:[/dim]\n '
736- f'[dim] Host <host>[/dim]\n '
737- f'[dim] ControlMaster auto[/dim]\n '
738- f'[dim] ControlPath ~/.ssh/sockets/%r@%h-%p[/dim]\n '
739- f'[dim] ControlPersist 600[/dim]\n '
740- f'[dim] Then your first SSH session handles 2FA; the tunnel reuses it.[/dim]\n '
741- f'[dim] (Run [bold]mkdir -p ~/.ssh/sockets && chmod 700 ~/.ssh/sockets[/bold] once if the dir does not exist.)[/dim]'
729+ f'\n [bold]ssh -L { port } :localhost:{ port } user@cluster-hostname[/bold]\n '
730+ f'\n [dim] Replace [bold]user@cluster-hostname[/bold] with whatever you normally pass to [bold]ssh[/bold][/dim]\n '
731+ f'[dim] to reach this cluster (e.g. [bold]jdoe@login.delta.ncsa.illinois.edu[/bold] or an[/dim]\n '
732+ f'[dim] alias from your [bold]~/.ssh/config[/bold]).[/dim]\n '
733+ f'[dim] Then open [bold]http://localhost:{ port } [/bold] in your local browser.[/dim]'
742734 )
743735 cons .print ('[dim]\n Ctrl+C to stop.[/dim]\n ' )
744736 app .run (debug = False , port = port , host = host )
0 commit comments