LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-26-2018, 09:04 PM   #16
MadeInGermany
Senior Member
 
Registered: Dec 2011
Location: Simplicity
Posts: 2,790

Rep: Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201

Because of the double evaluation of remote code (once by the local shell and once by the remote shell), it is advisable to have the remote code as short and simple as possible.
So the suggestion
Code:
ssh $hosts -qnx /sbin/ip a | awk ...
is a good one, because the remote code is only /sbin/ip a
and the code after the pipe is local.

Note that I did -qnx options.
The -t option can be problematic; many sshd default to DOS CR-LF line ends if the terminal type is unknown, as shown with
Code:
TERM="" ssh -t remotehost "ls; uname -a" | cat -v
Looks like a bug of course.

Last edited by MadeInGermany; 02-26-2018 at 09:05 PM.
 
1 members found this post helpful.
Old 07-11-2018, 10:29 AM   #17
kostanza
LQ Newbie
 
Registered: May 2018
Posts: 4

Rep: Reputation: Disabled
Mr. MadeInGermany may I contact you on PM?

I have a target .. with IP.. but I want to log via ssh client or putty.
When I try to root he ask me a password. I dont have idea how to bypass this root password.
There is a way to find the hash of the password? on which part its saved?
Or other way to can bypass this and get the root.
Thank you

Last edited by kostanza; 07-11-2018 at 10:50 AM.
 
Old 07-11-2018, 10:47 AM   #18
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by kostanza View Post
Mr. MadeInGermany may I contact you on PM?

I have a target .. with IP.. but I want to log using SSH. When I try to root he ask me a password. I dont have idea how to bypass this root password.
Simple: YOU DO NOT bypass a root password. Also, you should not be logging in as root over the network at all.
 
Old 07-13-2018, 08:49 AM   #19
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Agree W/@TB0ne over the network you want as much security as possible. to the point no one knows who you are if possible.
 
Old 07-13-2018, 09:11 AM   #20
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,727

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
kostanza,
Please
1. read the "How to ask a question" link in my signature
2. start your own thread with a well-worded question.

Thank you.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Find MAC address of the 'main' network interface arizonagroovejet Linux - General 4 05-14-2014 01:08 PM
finding mac address of our interface from kernel space karan2386 Linux - Kernel 1 03-31-2012 05:02 AM
env variable mac address script problem schris403 Programming 7 08-01-2007 03:04 PM
get mac address given a specific interface kpachopoulos Programming 6 06-07-2006 02:41 AM
MAC Address spoofing on alias/secondary interface tara Linux - Networking 3 08-31-2005 09:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:51 AM.

Main Menu
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