Jump to content

SSH help

Judahnator
Go to solution Solved by josephting,

The simple way I used was screen.

 

Below are some basic commands/keys you will need.

 

screen - Start a new pre-named screen

screen -S <name> - Start a new screen instance with the name you specified

screen -ls - List all screen that's currently running

screen -r <name> - Attach your current session to the specified screen

Ctrl + A > D - Detach from the current screen

 

The general idea here is start a new screen, execute/start the stuff you need, detach from the screen and everything will be running in the background.

For multiple processes you want to run, just run multiple screens.

Im fairly new to SSH, but id like to get into it. I have a server running that i need to interface with, but dragging one of my monitors over to it daily is getting annoying. So im learning how to work with ssh.

 

My problem is all programs close when i stop SSH, and i cant seem to figure out how to interface with any programs in the background.

 

For example, i need to run a program named start.sh.

I have seen people say to use the command nohup and disown, but im a bit of a noob.

 

Anyone know how to work this?

 

 

Thanks in advance,

 

Judah

~Judah

Link to comment
Share on other sites

Link to post
Share on other sites

You want to interact with programs on the remote system, without SSH?

 

Please explain better.

 

End your command with & if you want them to execute in the background and exit when finished. Or use screen if you need to attatch back to the same SSH session later on.

 

 

Im fairly new to SSH, but id like to get into it. I have a server running that i need to interface with, but dragging one of my monitors over to it daily is getting annoying. So im learning how to work with ssh.

 

My problem is all programs close when i stop SSH, and i cant seem to figure out how to interface with any programs in the background.

 

For example, i need to run a program named start.sh.

I have seen people say to use the command nohup and disown, but im a bit of a noob.

 

Anyone know how to work this?

 

 

Thanks in advance,

 

Judah

Link to comment
Share on other sites

Link to post
Share on other sites

The simple way I used was screen.

 

Below are some basic commands/keys you will need.

 

screen - Start a new pre-named screen

screen -S <name> - Start a new screen instance with the name you specified

screen -ls - List all screen that's currently running

screen -r <name> - Attach your current session to the specified screen

Ctrl + A > D - Detach from the current screen

 

The general idea here is start a new screen, execute/start the stuff you need, detach from the screen and everything will be running in the background.

For multiple processes you want to run, just run multiple screens.

Link to comment
Share on other sites

Link to post
Share on other sites

The simple way I used was screen.

 

Below are some basic commands/keys you will need.

 

screen - Start a new pre-named screen

screen -S <name> - Start a new screen instance with the name you specified

screen -ls - List all screen that's currently running

screen -r <name> - Attach your current session to the specified screen

Ctrl + A > D - Detach from the current screen

 

The general idea here is start a new screen, execute/start the stuff you need, detach from the screen and everything will be running in the background.

For multiple processes you want to run, just run multiple screens.

 

This did the trick, thanks so much

~Judah

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×