Displaying 15 results from an estimated 15 matches for "somecommand".
Did you mean:
some_command
2015 Sep 12
3
Differentiating between ssh connection failures and ssh command failures
...echo command failed
> fi
ssh remoteserver exit 255
Hmm :-)
exit(-1) aka exit(255) is a pretty standard "generic failure code"
for many programs.
The problem, really, is that "exit code" is the wrong thing to test for.
x=`ssh remoteserver "echo CONNECTED && somecommand"`
And then see if CONNECTED appears in the output to show successful
connection.
--
rgds
Stephen
2001 Sep 05
2
sshd hangs on logout -- is this a bug?
In the changelog, there is an entry:
20001129
- (djm) Back out all the serverloop.c hacks. sshd will now hang again
if there are background children with open fds.
Does this mean that this is regarded as expected (and correct) behavior, that
should not change in the future, or does it mean that this behavior is a
known problem that someone will eventually fix?
--Adam
--
Adam McKenna
2008 Feb 26
2
bash - safely pass untrusted strings?
...ngle-quotes and double-quotes, maybe
god-only-knows-what-else. It's untrusted data.
Yet I need to pass it all *safely*.
The appropriate function in PHP is addslashes(); but what is the bash
equivalent? EG:
#! /bin/sh
A="This isn't a \"parameter\"";
B=`/path/to/somecommand.sh $A`;
exit 0;
Thanks,
-Ben
--
Only those who reach toward a goal are likely to achieve it.
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
2012 Dec 05
10
Slight oversight in the type documentation
So I was looking at the type reference, and noticed that for a lot of the
types, no namevar was listed. When I checked the types in the code, for
each of those omissions, the namevar was simply "name". Now, it might be
self evident that this is the case, but a little documentation couldn''t
hurt, If not in each type, at least in the section where it describes what
namevars
2016 Dec 22
3
[Bug 2649] New: Problem with reverse tunnel between SSH client 5.5p1 and SSH server > 6.4p1
...//bugzilla.mindrot.org/attachment.cgi?id=2344 (fix for bug
https://bugzilla.mindrot.org/show_bug.cgi?id=2147).
I have an OpenSSH client 1:5.5p1-6+squeeze3 on Debian 6 (Squeeze)
building a reverse tunnel with dynamic port to a Jessie server:
$ /usr/bin/ssh -t -t -R *:0:localhost:443 user at server somecommand
If the server runs OpenSSH up to version 6.4p1-2 ("forwardports" from
snaphot.d.o), everything is fine. With any OpenSSH server from 6.5p1-6
to 7.3p1-3, the tunnel gets established, but no data can be
transmitted over it. On any activity, the client side shows:
WARNING: Server requests...
2015 Sep 11
2
Differentiating between ssh connection failures and ssh command failures
I'm sure this should be an easy question, but from the ssh client manpage:
EXIT STATUS
ssh exits with the exit status of the remote command or with 255 if an error occurred.
Let's say I'm using
ssh server.example.com /usr/bin/do/something
in (e.g.) a bash script.
How can one differentiate between a failure of ssh to connect to the host and the
command in question returning
2003 May 06
1
logging command line execs
Hey folks,
As part of a local change, we like to authlog the commands executed via
command line, i.e.:
ssh user at host "somecommand"
And I was able to modify session.c like so:
--------------------------------------
case SSH_CMSG_EXEC_CMD:
if (type == SSH_CMSG_EXEC_CMD) {
command = packet_get_string(&dlen);
debug("Ex...
2004 Sep 06
0
OpenSSH 3.9p1 bug, .hushlogin is ignored
...= NULL)
display_loginmsg();
According to the ChangeLog:
20040701
- (dtucker) [session.c] Call display_loginmsg again after do_pam_session.
Ensures messages from PAM modules are displayed when privsep=no.
Unfortunately, this breaks .hushlogin.
As long as I run "ssh somehost somecommand", it obviously works as
expected, but if I do "ssh somehost", I get the "Last login:" line.
If I remove the code segment, ".hushlogin" works again. (No big deal. ;-)
Although "if (command == NULL)" could be replaced by a call to
"if (!check_quietl...
2004 Sep 18
4
Samba Script?
Good Evening :)
I wanted to know is it possible to write a script to alert me by email if anyone accessed to Samba.
For example:
192.168.0.2 and 192.168.0.3 allowed to access to samba network (I wont get a alert).
Any IP apart from 192.168.0.2 / 192.168.0.3 then it will alert me.
thanks.
Shahid
2007 Nov 05
1
Programs run over ssh aren't getting real ttys.
I use OpenSSH on a number of machines. If I connect to most of my
machines and open a bash shell the first three file descriptors of
bash are something like /dev/pts/6. On these machines OpenSSH is as
good as a "real" terminal.
However, I am putting together an embedded system and I must minimize
the size of the installed system. I have OpenSSH working on this
system but, when I connect
2010 Dec 14
7
source /etc/profile
Hello ,
There is a way to source /etc/profile inside puppet on demand?
My problem is that I install Java, afterwards I set JAVA_HOME variable
in /etc/profile.
After Java is installed, a gem which depends on Java starts to
install ... but as it needs JAVA_HOME environment to be set, it fails.
I am not sure what can I do ...
Thank you,
Adrian
--
You received this message because you are
2013 Aug 31
11
[Bug 2147] New: OpenSSH remote forwarding of dynamic ports doesn't work when you create more than one
https://bugzilla.mindrot.org/show_bug.cgi?id=2147
Bug ID: 2147
Summary: OpenSSH remote forwarding of dynamic ports doesn't
work when you create more than one
Product: Portable OpenSSH
Version: -current
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P5
2005 Feb 17
4
[Bug 984] Hangup to script while forced command ...
http://bugzilla.mindrot.org/show_bug.cgi?id=984
Summary: Hangup to script while forced command ...
Product: Portable OpenSSH
Version: 3.9p1
Platform: All
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: sshd
AssignedTo: openssh-bugs at mindrot.org
ReportedBy: webmyster
2001 Oct 03
5
hang on exit - bug or no bug?
The hang on exit has become quite an issue in my organization(Sun and HP
hosts). I see this note in the changelog which indicates that there
will not be a fix for this problem:
20001129
- (djm) Back out all the serverloop.c hacks. sshd will now hang again
if there are background children with open fds.
Also, I am aware of the workaround as noted in the FAQ. However this
workaround is not
2020 Sep 25
0
Wine release 5.18
...49765 SlingPlayer Desktop crashes on unimplemented function msvcrt._snprintf_c
49770 Firestorm viewer crashes
49774 macDriver no longer functions within macOS VM
49806 WIDL doesn't tolerate attribute [hidden] within enums.
49811 cmd /c "cd "directory"&&"somecommand.exe"" tries to cd to "directory"&&"somecommand.exe"
49820 VBScript fails to parse decimal literals between -1 and 1 without 0 in front
49834 45a63e5b3ce0e5d7fcc55ce57f315086b87f8ad7 breaks binary compatibility with 5.0 on passing main() argc
49847 Logo...