about MAC Next iterm2 Realization clone session, It's easy to implement. In fact, this way is also the most basic way, The first several methods are used loginshell The way, Actually iterm also command The way you enter login instructions, direct ssh Just log in, Just this way, you need to enter the password manually, For the way of inputting dynamic code every time, You can only enter it every time, Here's the pictureīut in this case, It is equivalent to creating a new one shell The tag has to enter a random code, It's also very inconvenient, but Mac Version of secureCRT Support clone sessions, And directly log in to the server. But for login through the springboard, Configure one for each developer token, Dynamically generate a 6 A string of digits, There will be problems with the way used as login verification, No input prompt, Waiting all the time, Just like the picture below, This happens to be the case in our company, For this situation, I didn't find relevant solutions on the Internet, But after my trial, Successfully came up with a solution. Log in this way, have access to rz/sz Instructions, For students who log in to the server with an account and password. The specific installation method is as follows : sudo brew install Ĭreate login tags, stay send text at start Input instructions at /usr/local/bin/sshpass -o StrictHostKe圜hecking=no -p 22 passwrod ssh Īnd I actually use it, It is also found that this login method is suitable for scp The command of does not support very good input scp Followed by documents, Use tab Key for directory or file prompt, Will report a mistake, Here's the picture Use expect The way to log in to the server, use rz、sz When carrying out relevant operations, The display is all right, You can normally choose to upload files or download directories, No exception was thrown, but the uploaded file could not be found, but the file could not be uploaded and downloaded successfully. įirst iterm Not supported by default rz Related instructions, But for how to configure iterm2 Of lrzsz, There are specific operation documents on the Internet, I won't narrate here Spawn ssh -p Ībove is expect Two login methods, Each has its own advantages, logon server, There is no problem with relevant operations, But when you need to upload and download files, there will be problems. Create login script item2login.sh #!/usr/bin/expect The second kind Login script with parametersġ. Stay send text at start Input instructions atĪnd then in profiles Click the specific tab to log in The contents are as follows : #!/usr/bin/expect -fĬreate a new login tab, The contents are as follows ssh Under the table of contents, For classification, there can be subdirectories. Create a in a directory expect Script files, Suggest in your own. Įxpect There are two ways to connect : The first one is expect Script filesġ. Some methods on the Internet are always not so perfect, Do a tidy up here, By the way, combined with my test, Provide a perfect solution that I have put into practice. And it often configures one for each developer token, Dynamically generate a 6 A string of digits, Used as login password. But because of iterm2 Default cannot use rz Command to upload files, And my current company's remote login test server, The scheme adopted is to log in through the springboard machine. Often deal with servers, It is inevitable to connect to the server remotely, How do you use it? iterm2 Connect to server, A lot of searches on the Internet. Use MacOS All the students in the system know iterm2, How to build the most powerful terminal iTerm2 + Zsh + vim, If you are interested, you can search it, Here we mainly introduce ssh Perfect connection Linux Server solution.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |