LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Search Forums
User Name
Password

Notices


Showing results 1 to 5 of 5
Search took 0.02 seconds.
Search: Posts Made By: Turbocapitalist
Forum: Programming 03-21-2024, 07:59 AM
Replies: 16
Views: 347
Posted By Turbocapitalist
You might try increasing the verbosity with a -v...

You might try increasing the verbosity with a -v or three on the client to get a little more information on the client side.


cat test | ssh username@ip 'cat > test'
cat test | ssh username@ip...
Forum: Programming 03-21-2024, 07:49 AM
Replies: 16
Views: 347
Posted By Turbocapitalist
If the two programs on the server, config and...

If the two programs on the server, config and enable, are interactive, then you will need -t instead of -T and -N there.
Forum: Programming 03-21-2024, 07:46 AM
Replies: 16
Views: 347
Posted By Turbocapitalist
The public key only needs to go into...

The public key only needs to go into ${HOME}/.ssh/known_hosts once and then you are good.

But if you are connecting to multiple remote servers:

Then you can make a bunch of keys and give them...
Forum: Programming 03-21-2024, 05:09 AM
Replies: 16
Views: 347
Posted By Turbocapitalist
That's a good way too, but it would also need to...

That's a good way too, but it would also need to suppress the psuedo-TTY allocation with the -T option:

cat script | ssh -T -i .....
Forum: Programming 03-21-2024, 04:12 AM
Replies: 16
Views: 347
Posted By Turbocapitalist
I would do it with keys instead. #!/bin/sh ...

I would do it with keys instead.

#!/bin/sh
# SSH connection and command execution
ssh -i ${HOME}/.ssh/ip_ed25519 -NT username@ip 'enable; config;'


For that you'll need a key, and for bonus...
Showing results 1 to 5 of 5

 

Didn't find what you're looking for? Try Google:


  



All times are GMT -5. The time now is 06:26 PM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration