Software :: Have Scripted Ssh Commands Appended To The Remote History?

Jan 17, 2011

If I interactively ssh to a remote host and enter commands, I can up-arrow through the command history.If a script ssh's to a remote host and calls a command, it does not get appended to the history.How can I configure ssh or sshd so that this happens? I'd like to be able to have those scripted commands available in the history file when I log back in interactively.

View 2 Replies


ADVERTISEMENT

Fedora :: Seeing All Commands Used In History Of Running Terminal?

Jun 16, 2010

Having recovered from busting my installation, feel urgent need to know what I did to set it up.So...would like to see all commands I ran in terminal window and store them (execute as script in future?)I can see prior commands using up arrow, is there a way of storing all of those commands in history?Also, any pointers to setting up sort of backup of the package installation setup?

View 7 Replies View Related

General :: History Of Commands Executed By Users

Apr 16, 2010

i am working with linux security auditing project on my Servers.I want to find out all the commands executed by individual users.i think using last command,find out the login details.But how can find out the commands executed by each users on all logins except "history".?

View 2 Replies View Related

General :: Commands To Remove Particular Few Lines In History File?

Jun 16, 2010

Is there any commands or scripts to remove only selected line in the history file.

View 1 Replies View Related

General :: Edit History To Remove Few Commands Executed?

Jun 30, 2010

Suppose when I issue history command it is showing 100 entries with number attached to each command executed.

how to edit the history to remove few commands executed by me so as to protect the system from other users.

View 11 Replies View Related

General :: Delete Bash Terminal History Upto Certain No. Of Commands?

Jan 12, 2010

i want to delete some say 10 previous commands in bash shell!

View 3 Replies View Related

Server :: All Previous Commands History Is Deleted When Rebooted Or Relogining The RHEL4?

Apr 21, 2010

i have RHEL4. i m facing problem that all the previous command history is deleted when i restart the server or relogin the server. it is happening with all the users not with any one user.

View 2 Replies View Related

Server :: Error. NT_STATUS_ACCESS_DENIED Opening Remote File History.txt

Sep 2, 2010

I have install samba server.Now i am trying to shift data from linux machine to windows machine.it gives following error. NT_STATUS_ACCESS_DENIED opening remote file history.txt firewall and iptables are also disabled.

View 1 Replies View Related

General :: Wait For Ssh Remote Commands?

Apr 14, 2011

I'm running a scripts that launches remotely another script with ssh.re's the script:main.sh

Code:
ssh user@remote "~/script1.sh"
ssh user@remote "~/script2.sh"
Here's the remote script:

View 9 Replies View Related

Software :: Using Expect To Execute Remote Commands?

Dec 21, 2010

I'm trying to get Expect to execute commands on a remote server using SSH with username/password authenticationMy current expect script is

Code:
#!/usr/bin/expect -f
spawn ssh -tq root@my_hostname "whoami"

[code]...

View 2 Replies View Related

Fedora Installation :: Looking For A Scripted Installer

Apr 23, 2011

we are working on a project which uses Fedora as the operating system. we are running our deliverables on up to 20+ machines of identical specifications, we have perused the whole package list (presented in the standard installer) and have a confirmed list of modules we wish to include, and we wish to know if there's anyone out there who is interested in writing a scripted installer which can be ran on the machines to perform unattended installation of F14/F15 on all the machines. a partial re-branding of the installer and boot screen would also be needed (to put it simple : adding the logo/some text of our project to existing Fedora brandings, while making sure the user will know the nice Fedora experience is embedded within in whole). please reply if you have interest in it and the know-how, and how much you wish to be reimbursed for your effort.

View 4 Replies View Related

General :: Scripted LFTP With Watchdir

Jun 1, 2011

Really new to linux but I'm learning quite a bit and fairly fast. This is my first question on these forums and I hope I can get pointed in the right direction.Currently I run ubuntu 10 and currently I connect to my box via putty, and manually get files from 1 central ftp and then I take the files there and manually connect to 5 different ftps and send them out. I'm looking to figure out a solution where I can just dump the files into a particular directory on my box like a rtorrent watchdir and a script will pickup the new file and ftp it to all the places I need it to go.

I want the script to run in the background and just know a new file hit the directory and take care of it. To save time currently I'm using lftp and i have bookmarks saved with pw for all the ftps.

View 8 Replies View Related

Ubuntu :: Ssh Commands Execute Locally Instead Of On The Remote Computer?

Jul 12, 2010

I can ssh to the remote computer OK, but the commands execute on the local machine, not the remote machine as they should. After much frustration I did the following hoping to clear the problem. I turned off all machines on my LAN, the hub and the router. I then rebooted everything in the reverse sequence - cable modem, router, hub, and then the computers.Then I reinstalled ssh on both machines.

sudo apt-get purge openssh-server openssh-client
sudo apt-get install openssh-server openssh-client
sshd in now running and port 22 shows on both machines. However the problem persists.

View 5 Replies View Related

General :: Cut And Paste Boot Commands From PC To ILO Remote Console?

Jul 1, 2011

I downloaded rhel 5.5 CD 1 iso to my PC, and used it as a virtual CD-ROM to kickstart HP DL380 G4.Here is my questions:

1. how can I cut and paste boot commands (very long strings) from my PC to iLO remote console?
2. is there anyway I can get "boot prompt" by ssh to iLo's IP?
3. after kickstart, I want to eject the virtual CD-ROM / media, I have tried the following method in the kickstart profile, but all failed, after reboot, it still boot from the virtual CD-ROM. So how can I reject the virtual CD-ROM for rhel 5.5 kickstart?

View 1 Replies View Related

Software :: Execute Script To Run Commands On Remote Server

Jan 1, 2010

I have an immutable script on server A, it executes a maintenance command on the remote servers where elevated privileges are needed. I want the developers on server A to execute the script and run it without being prompted for a password. The script contains scp root@serverB and ssh 'root@serverB', if run as root it runs great since I am using ssh keys. However, as regular users they are prompted for a password. If I do created their group on server B...etc and give the group sudo it would still ask for passwords right? Can I overcome this?

View 1 Replies View Related

General :: Check The Browsing History By Individual Users Web Surfing History By Their IP Addresses?

Jun 29, 2010

I am using squid proxy server for sharing Internet in my internal network. I would like to know that how can I check the browsing history by individual users web surfing history by their IP addresses?

View 1 Replies View Related

General :: Removing Previously Type Commands At A Remote Server?

Aug 7, 2010

I am ssh'ing into a remote server and then su'ing to root.The problem is that sometimes, I have not paid enough attention to the console message, and I have accidentally typed in the root password at the command prompt (when for example, I had failed to provide the root password correctly the first time - so su prompt went away).

I remember reading somewhere that a history of commands typed at the console is kept somewhere.I have 3 sub questions

Where (which folder) is the file stored?

Can I edit that file and remove the root password from it?

Being the paranoid person that I am, I wonder if there is a more secure way of logging into my server - other than ssh (or am I being TOO paranoid?)

My server is running a headless Ubuntu 10.0.4

View 1 Replies View Related

Ubuntu Servers :: Defend Against A Scripted Attack On Apache2?

Jul 28, 2010

I have a LAMP server that has been up for a month or so before I get stuff like this:

Code:
60.12.233.54 - - [24/Jul/2010:22:46:07 -0400] "GET /w00tw00t.at.blackhats.romanian.anti-sec:) HTTP/1.1" 404 895 "-" "ZmEu"

[code]...

View 6 Replies View Related

Red Hat / Fedora :: When Log In, This File /etc/host, Under The Etc Directory Get Appended The Username?

Feb 19, 2010

I am having a problem with two linux boxes I have. They are running Centos 5.3 and Centos 5.4. The problem is that when I log in, this file /etc/host, under the etc directory get appended the username I am logging in as, the IP address I am logging in from, and worse, the password in clear text.This is the format it uses:username@IP (password in clear text) [Tue Jan 12 2010 13:00:26 -0500]Is it possible for someone to tell me what is this about, and how to stop it?

View 5 Replies View Related

OpenSUSE Network :: Stopping .site From Being Appended To Hostname Every Bootup?

Apr 21, 2011

.site gets appended to the end of the hostname every system bootup for me (e.g. hostname.site), even though I've changed the hostname in both the Network Settings and Hostnames sections of YaST. How can I stop this?

View 7 Replies View Related

General :: Mailx Cmd - How To Ignore The Machine Name Getting Appended To The Receiver Mailaddr

Mar 12, 2011

I am facing some problem with the mailx commmand. When i run the mailx command from the command line it sends it to the correct mail address which i mention.

#cat mailbody | mailx -s "Test" sampleaddr@abc.com

But when i run the same command from a perl script, it appends the machine name (hostname.abc.com) to the mail address, and the mail address (sampleaddr@abc.com - which i entered) becomes invalid [URL] - found in the maillog), failing to reach the receiver. I am running it from the csh shell. how to avoid this addition.

View 2 Replies View Related

General :: Multiple Grep Outputs Appended To Single Row Of CSV File?

Sep 12, 2010

how to update a series of values from multiple grep commands outputs to be appended to a single row of a csv file? Work on a linux envir. The values from grep output will be numeric values.

Output sold look like:

1,3,4,5,7,0,5

Each of these values will be odtained from multiple grep commands piped with wc -l Is it possible to update a single row of a csv file if so pleas ehelp me with the command to be used to redirect the output into the csv file

View 5 Replies View Related

Programming :: Getting A Script To Continuously Monitor Appended Data To A Log File?

Oct 13, 2010

Code:

if ! [ -f ${PATH}/myfile.txt ];then
echo $(date +%Y%m%d"_"%H%M%S)": Nu am gasit fisierul ${PATH}/myfile.txt"
ps -fxu pin | grep "/usr/local/coreutils/bin/tail -f ${LOG_PATH}/x.log$" | awk '{system("kill "$2)}'
cat ${LOG_PATH}/x.log | sed -n -e '/LONG/{x;1!p;g;;}' -e h > ${PATH}/myfile.txt

[code]....

I have a continuously growing log file (x.log) in which i have to look for certain lines that contain "Long". The line above each line containing the word "Long" it contains a time stamp. I want to extract each line containing the time stamp into myfile.txt and check the difference between time stamps. Whenever there is a difference i need to run another script (${CAL_PATH}/${APP_NAME}), then sleep 1, then continue searching. Lines with "Long" do not appear continuously, but in blasts. The script runs fine until the first pause encountered. Starting with the first pause, tail -f doesn't write in myfile.txt anymore. Can someone help me understand why "tail -f" it stops writing into myfile.txt? Or does someone know an alternative to "tail -f" of achieving the initial scope of the script?

View 5 Replies View Related

Ubuntu :: External Hard Disk Drive Gets Renamed With An Appended Underscore?

Jul 30, 2010

Almost every time I use my external Hdd the drive gets named with an appended underscore. this is the list from my /media folder.

/media$ ls
1CF44533F4451106 F Drive G Drive_ G Drive___ G Drive_____
E Drive G Drive G Drive__ G Drive____ G Drive______

i have tried to remove the directories in terminal by using sudo rmdir but this is the error i get:

sudo rmdir /media/g drive
rmdir: failed to remove `/media/g drive': No such file or directory

now each file in the /media folder has a white x on them and i don't not know what that means. but i attached a screen grab of the folder.

how to know how to delete all the underscored folders.

View 5 Replies View Related

General :: Shell Script Has Stopped Working - Why Is "" Appended To Filename And Does It Matter

Jun 8, 2011

I am new to Linux, but was put in charge of our company's Amazon presence. My problem is that all of the sudden, a shell script we have been using has stopped working, and returned an odd error that I simply can't decipher. The shell script is pretty simple, and is run on our crontab (however manually running it causes the same error as well). The script name is "sendh.sh" and to run it in Linux is simply typing "sh sendh.sh". Here it is:

[Code]....

Yes, obviously those files are in the directory, I can see them through the "ls" command (or through WinSCP as well). When run one by one, each command works fine, it's just when using this "sendh.sh" shell script then it fails. Does anyone know why "" is appended to the filenames when I try to run it, or what the heck "ambiguous redirect" means?

View 11 Replies View Related

Ubuntu Multimedia :: Option For Canon Remote Capture - Remote Camera Control Software ?

Oct 17, 2010

Canon cameras used to come with a piece of software called remote capture for Windows and MacOS.

You plug in the camera via USB, and then the camera display is on your monitor. From there you can do everything your camera does, like taking pictures of video. Does anyone know if there is linux equivalent software that can do this?

I have found this software, but new cameras aren't supported.
[url]

I'm trying to make a stop motion movie.

View 1 Replies View Related

Ubuntu :: Remote Desktop Login To Gdm After Remote Restart

Feb 6, 2011

I maintain plain vanilla Ubuntu 10.04 systems for several friends. Each machine has only one user, the owner. I use Remote Desktop to instruct and to perform maintenance. Here's my problem:After updating the system, if the kernel has changed, a restart is needed. If I do a restart, I then have to phone the owner to insert his login credentials in the gdm login screen, before I can do anything else via Remote Desktop on that machine.There ought to be a simple way I can avoid the phone call and login myself.

I'd strongly prefer not to use any software that is not included in a plain vanilla Ubuntu 10.04 installation. And I don't want to weaken system security beyond what it is now.Is there a solution? Or, what is the simplest solution?

View 2 Replies View Related

Red Hat / Fedora :: Log Remote Or External Ip Address Of Remote Clients?

Sep 15, 2010

We're using both SuSe and RHEL servers. Our servers are running behind firewall device and remote root login is disabled in SSH.

We're using NAT.

Remote client connections including failed logins are logged into the /var/log/messages but what is logged are gateway ip of our LAN - the LAN IP of Firewall device.

How can I logged the external or public IP of the remote client?

View 4 Replies View Related

Ubuntu :: CPU History Readout Mean?

May 10, 2010

when one core is high, the other is low. It's almost an exact mirror effect right in the middle of the graph. What's up with this?

View 2 Replies View Related

Ubuntu :: Zsh - How To Clear The History

May 29, 2010

Sometimes I don't want commands to be added to my history. In bash it wasCode:unset HISTFILE
You would run it after a few commands and it would clear them all.I can't find out how to do it with ZSH.

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved