For Type of Key to generate, select SSH-2 RSA. From the Start menu, go to All Programs then PuTTY and then PuTTYgen and run the PuTTYgen program.
Again see the man pages for more options. After you download and install PuTTY: Make a copy of your private key just in case you lose it when changing the format. You can reconnect to is with 'screen -r model1'. Example: start screen as 'screen -S model1'. You can also set the screen name to something more userfriendly with the '-S' option. If you want to reconnect to a screen that is attached somewhere, you can force it to detach and then reconnect by typing: 'screen -D -r screenname'. If more then one screen session, type 'screen -r screenname' (where screenname is something like: ). You can only reconnect to detached screen sessions. It will also show if they are attached (open somewhere) or detached.
To see a list of screen session: screen -list.
From another terminal window (not inside screen) type screen again. On Windows, assuming you have set up the Windows driver for USB serial, you should use putty.exe to connect to the board. Enter 3306 in the Source Port field, and 127.0.
You can also have more screen sessions. Create an SSH Tunnel on Windows Perform the following steps to create an SSH tunnel to the MySQL server with PuTTY: Launch Putty and enter the IP Address of the server in the Host name (or IP address) field: Under the Connection menu, expand SSH and select Tunnels. Log the session to a file: Ctrl-a H Use a custom name: Ctrl-a : Type: logfile newlogfilename Switch to the next window: Ctrl-a Ctrl-n Switch back to the last window you were: Ctrl-a Ctrl-a. You can have more then one 'window' in one screen session. To detach it, type Ctrl-a Ctrl-d (most commands in screen start with Ctrl-a, this overrides the Ctrl-a command normally used when you want to jump to the start of a line). If you exit screen, by typing exit, you lose that session. If you want log out of ocean, or close down your computer, but still keep the terminal session running, you have to detach it. You can also go to another computer, re-login to the server and resume the same terminal session.įirst connect to ocean (ssh After you are logged in type 'screen' (no quotes, it if complains about a terminal or something, set terminal to vt100, by typing 'setenv TERM vt100'). figure out which tty is holding on to the screen session by typing into terminal. With screen you can log in to a server and stay virtually logged in even when you shut down your computer. Here is a way a longer way to remove the process that is attached to that screen session, so you can reattach to it and continue with whatever you were doing.