Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
ok .. but my mashine have no a static IP addr ! soi which
Code:
HostName
I have to give there ?
The machine you are connecting from does not need a static IP address itself. However, the machine you are connecting to does need some kind of permanent host name or IP number. If the target machine has a dynamically allocated IP address it will change and you can compensate by signing it up for a dynamic DNS service like No-IP.com
In the SSH client configuration file (that is to say on the machine you are connecting from) the configuration directive "Host" contains the shortcut names. The "HostName" configuration directive points to the fully qualified domain name (fqdn) or permanent IP address.
Ok. But the client machine only needs an outgoing connection, it does not matter whether it is static or dynamic. However, the machine you are connecting to is another matter.
What is the situation regarding permanent IP address or fully qualified domain name for the machine you are connecting to? That is what needs to go into the HostName directive in ~/.ssh/config on the SSH client machine.
Now you can type either "ssh lab" or "ssh xxx.yyy.zz.aa" and then all the configuration settings associated with that shortcut will be added automatically.
but in order to doing the same thing (office->lab->server) I have to ass another block in the .ssh/config ?
Yes. Check it manually first and then transfer the settings to ~/.ssh/config after the settings you've just added. Substitute the real server key name for the ->server key below:
ok
now this part is done (thank you so much Turbocapitalist )... back to the topic .. how can i rub scrip in ssh without these stop when I log out ?
I was thinking to use nohup but i'm nor sure if it doesn work in thi way
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.