SSH on the iPad with Secure Shellfish - Tmux, Command line, Neovim
David Allen
You can subscribe here Good and Geeky Channel - https://goodandgeeky.com/Youtube
Chapters: 00:00 - Intro - Iberic Ruins 00:37 - Open Secure ShellFish on the iPad 00:52 - My list of computers ready for SSH 01:01 - you can connect to your Raspberry Pi 01:10 - Setting up the configuration 01:23 - SSH Key instead of a password 01:37 - Set the folder you start in on the remote computer 01:53 - This connect with the iPad Files app 02:08 - Get files in the right place so you can work on them 02:19 - In the iPad Files App 02:32 - First time connecting 02:43 - Setup the SSH key 02:55 - Install the key on the remote computer 03:06 - I had already sent that key to Cersei 03:18 - Specify in the config which key you are using 03:32 - Connected by SSH now 03:45 - Command line tools to see what's in folders 03:55 - Use aliases you have set up on the remote 04:09 - clear screen 04:22 - start tmux 04:37 - Two terminals inside the terminal 04:47 - Opened up Neovim 04:57 - Changing between windows in TMUX 05:07 - Split a window with panes 05:20 - Run htop to see the status of your computer 05:31 - Really good and geeky information 05:41 - Exit out of TMUX 05:51 - Quit Neovim 06:03 - Upload a file from the iPad to edit on the Mac 06:20 - Drag and drop the file into the SSH app 06:35 - Use ls to list the files in the folder 06:50 - Neovim is great for keyboard warriors 07:08 - Neovim go to end of file 07:19 - End of line in Neovim 07:29 - There are a few modes in Neovim 07:42 - Snippets in Neovim 07:57 - The reason to use SSH and work on a remote computer 08:10 - Secure Shellfish is super for SSH 08:21 - Shellfish enables access through Files app 08:41 - Pick a file from shellfish and edit it in Textastic 08:58 - Outro
So here we are on my iPad , ready to go
I have secure shellfish on my front page of the iPad, let’s tap and go
On the left you can see a list of the computers I can log into with SSH. Argo is a raspberry pi, Cersei is the MacBook pro M1 Mel is my iMac which is upstairs and the others are also raspberry pi connections. The large panel to the right is the server configuration for my MacBook Pro
For the address I just have to put in Cersei.local, I don’t have to do anything with the port You put in the username you have on the computer
At the moment it is set to work with a password which is the login password you use on that computer. In a moment we will change that to work with an SSH key because it’s faster and more secure, let’s look at some of the other configuration settings first. I found that most of these things you can leave them at the default setting. I will leave the directory to be the home directory of the MacBook Pro The off-line folders I haven’t done anything with as yet, but I will make another video about that. It’s a good idea to have the files app switched on. You can drag files from the files app into the command line when the SSH window is open. So for instance I might want to edit a file on my iPad using an application like Neovim which resides on my MacBook. Or I can get files from cloud drives such as iCloud drive. Also in the files app you can access files on these other computers thanks to secure shellfish being connected. When you’re doing this the first time you come tap on verify configuration to see that everything is working and you get connected.
So here we are connected up to the MacBook Pro through Secure Shellfish I can use the various command line tools such as LL which will give me a list of the files in that folder. I can use aliases created in the ZSH configurations on the MacBook Pro. I have one entitled Lumos which all show me all the files including the invisible files and folders. I can use TMUX which is a terminal multiplexor. This allows me to have multiple terminals within they terminal provided by secure shellfish. Hi can divide this up into windows and panes so I can do things like splitting the window down the middle using the leader key combination. Or create an extra window –the keyboard combination for this is the leader key plus the pipe character. So now we have a tmux window in which I’m editing a HTML file and another window which is split into two and I could be running something to monitor the system like htop in one pane, while in the other window pane I can be running around in the file system.
So let’s bring it in I file residing in the iPad to edit in Neovim on the Mac via Secure shellfish So I’m going to bring in this file called cup of tea.txt and I can do this from dragging in from the files app shown in the side panel so far has been uploaded. If I use the list files command I can see it there in the List of files. Now I can edit that file using neovim on the Mac from my iPad.
Let's get Social
- Twitter - https://twitter.com/wizardgold
- Twitter - https://twitter.com/A20Q
- FaceBook - http://goo.gl/mz4Gd ... https://www.youtube.com/watch?v=tVPRKNF2l2c
58913666 Bytes