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


ADVERTISEMENT

General :: Type And Execute Commands In Window From Computer

May 19, 2010

ssh to a machine on my network open up a terminal (gnome, xterm, whatever) and have it visible on that machines display be able to type and execute commands in that window, from my computer. i have kind of achieved this. on machine A, i ssh to machine B. on machine B, i open up a terminal and execute screen, C-a :multiuser on. on machine A, i execute screen -x and connect to the term on B. everything i type from A or B can be seen. i just want to be able to set this up without having to physically be at machine B. does that make sense?

View 7 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 :: Commands To Find Type / MountPoint / File System Id For The Filesystems?

Jan 12, 2010

I need commands which five me the following details abt all the file systems mounted the linux box

type
mount pt
file system id

View 4 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

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

General :: Accidentally Type Concatenate Large File On Remote System

May 6, 2010

Every once in a while on a computer I'm ssh'd into, I will accidentally type "cat largefile.txt" and my screen will start rushing with text for the next 10 minutes. I'm always working in a screen session, so my current solution is to just log out and then log back in, and since it can go 100X faster when I'm logged out, it'll finish in the short time it takes me to type my password in again. Is there a better way? Either involving the fact I'm in a screen session? Or a way to do this within SSH? What doesn't work: detaching from the screen session (doesn't respond until file is done outputting) trying command to move to a different window in the screen session (also doesn't respond) typing ctrl+C to kill cat command (also doesn't respond, probably because the command is done and the buffers just have to catch up).

View 3 Replies View Related

Fedora :: Removing Kernel Source - RPM Commands?

Sep 25, 2010

I installed the kernel source RPM to add a patch to a driver kernel module that didn't support my NIC. Now that the patch is part of the official source tree I no longer need the kernel source and I want to delete it. Can I just do rm -rf rpmbuild or do I need to run the reverse of the rpm commands described in Section 1 of [URL].

View 2 Replies View Related

Ubuntu Servers :: Where To Type Commands In Gnone Gui?

Oct 22, 2010

I am new to Linux, have used KDE/SLAX before but am now attempting to use linux on my old computer to accomplish these objectives:

1) Run an FTP so I (& my mates) can access files anywhere wit ease(no dramas).
2) Enable sharing of my drives so I can put files from Laptop into this computer

Now I have successfully Installed Ubuntu Server (Finallllly) but then messed up cuz I installed the Gnome GUI and now cant find any place where I can type any sudo commands. vsftpd should work for me right?

View 3 Replies View Related

Ubuntu :: Commands For Batch Deleting Folders/files By Name/type?

May 18, 2011

I'm trying to clean up a few hundred thousand mp3 files and I'm dying to find a way to automate some of the mechanical tasks I keep doing. It seems like at least two of these tasks could be easily accomplished with something at the command line, but I don't have the chops/know-how to figure out how (and would really rather not trial and error with batch deleting files & folders...).

1) Delete all folders named "_MACOSX" (and all subfolders/files contained therein) -- Basically, I'd like to apply this command to a few hundred directories that may or may not contain a subfolder called "_MACOSX" that I'd really like to get rid of.

2) Delete all files named "*.m3u". -- Similar to the first, I want to automatically scan all directories and subdirectories in a given location for all instances of this file-type and delete them wherever they're found.

3) Move all files named *.txt", "*.doc", "*.pdf" to a specific location. -- Similar to the last, except instead of deleting, I'd like to just move them, so that if there is anything worth keeping, I can keep it.

View 3 Replies View Related

Security :: Server Hacked When Try To Log In Type Root But Won't Let Type A Password?

Jun 22, 2010

I have a server hacked when i try to log in i type root but won't let me type a passwdthere are no services up, can't see page mail nothing

View 11 Replies View Related

Ubuntu :: VNC - Can't Type On Remote Desktops?

Aug 19, 2010

I have problem with remote Windows desktop.If I connect from my Ubuntu 10.04 to remote Windows XP SP2 desktop, I can type only digits, but no letters.If I connect from Windows XP, installed as guest in VirtualBox - everything is ok, I can type without problems.

View 3 Replies View Related

Ubuntu / Apple :: Removing Remote Desktop From Finder Sidebar

Dec 17, 2010

I've created a headless ubuntu mac server and everything is being found by Bonjour and showing up in Finder. The only thing that bugs me is the default horrible text used for remote desktop. How can I remove this item from the sidebar or rename it? I'm using the built in remote desktop utility on Ubuntu desktop 10.10

View 1 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

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

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 View Related

Networking :: Address Of Remote Network In FreeNX Wizard And Bit Type?

May 21, 2010

Some FreeNX start-up troubles here, need a hand. 1) I am trying to establish a connection from my workplace PC on my workplaces's LAN to my home PC on my private LAN (LAN-to-LAN). Just typing in the public IP of the target LAN in the "Host" field gets me nowhere, as it fails to connect due to a denial at port 22 SSH - even though I've done the forwarding in my home router and punched the required hole in the local firewall of the target machine.

This resembles what I'm looking at: [URL]..2) My home PC is 64-bit Mepis and my workmachine is a 32-bit Ubuntu. Is this a problem?

View 1 Replies View Related

General :: Getting Content-type/Mime Type Of The File Using Shellscript

May 24, 2011

I am copying the file form one directory to another directory using shellscript.

Here i want to get the Mimetype/Content-type of the file.

How to i can get the MimeType.

View 9 Replies View Related

General :: Server Commands To Clear Mail?

Mar 13, 2011

My var partition is full. The main culprit is NOW the mail file. What is the command to empty the mail files?The mqueue and clientmqueue files are now low on usage but the mail file is responsible for filling up the var partition.

View 1 Replies View Related

General :: Undelete Or Recover Previously Deleted Files?

Oct 22, 2010

There are some files on my external disk drive that are corrupted and not identifiable. How can I recover these files?

View 1 Replies View Related

General :: Command To Keep Track All The Previously Run Applications From All Terminals?

Apr 13, 2010

Is there a way or command to keep track all the previously run applications from all terminals that are connected to your linux machine? Something that will display the name of the application, start time, and end time of its execution?

View 3 Replies View Related

General :: Identify Previously Installed Device Driver?

Aug 1, 2010

How do you determine the source and version of a device driver in your linux box? (The wifi driver, for instance.) In windows you can find that info using "device manager". I suppose there is some corresponding tool in linux.

View 2 Replies View Related

General :: Variable Storing The Previously Executed Command?

May 23, 2010

I want to use PROMPT_COMMAND variable to build a history of all the commands i execute. So Basically i want to append the last executed command to my own command log file. How can i find the last executed command ?

I want to add PROMPT_COMMAND="echo $last_executed_command >> my_command_log" But I am not sure how to find the last executed command

View 2 Replies View Related

General :: Access Remote Mysql Server Through Socks Proxy Server?

Aug 25, 2010

Scenario:A - Local Unix machineB - socks proxy server port 1080C - remote mysql server port 3306I want to connect to the remote mysql server(C) from local unix machine(A) using sock proxy(B).

View 1 Replies View Related

General :: Setup Remote Access Server On Red Hat Enterprise Server Release 5.1?

Aug 30, 2009

how i have a machine installed Red Hat Enterprise Linux Server release 5.1 with 2 modem (usb & com port) still i want to configure RAS server so some pple able to connect my server and send me some files.

View 4 Replies View Related

General :: Any Server Available In Internet To Login Using Putty And Learn Commands?

Jan 29, 2011

I would like to learn basic linux commands and editors (eg : vi). Am using windows and it is difficult for me to install linux in ma laptop. So is there any free linux login servers available in internet so that I can login to server with putty and try using basic linux commands and editors.

View 4 Replies View Related

General :: Commands To Copy Files From HPunix To SUSE Server?

May 20, 2011

I have to copy files from HP unix server to SUSE linux server. I have tried rcp, but it does not work. Can someone help me with the commands or files to be changed inorder to copy the files.

View 3 Replies View Related

General :: How To Connect To A Remote Server And Run Some Code On That Particular Server

Jun 30, 2011

I am implementing an automated backup scheme so I created a shell script which first creates SQL dumps for all MySQL databases, then retrieves all websites from the /var/www directory of a remote server. The latter is working as I am using rsync to get the remote files.However, the MySQL dumps being retrieved are the ones from the local server which is not what I want. I want to get the SQL dumps from the remote server as well.I have a tunnel between the local and remote server which I can connect to without using any password (I added the public key to the authorized_hosts), so I tried to add the following code to the script:

ssh user@192.168.x.xxx

I then attempted to retrieve the SQL dumps and exited from the remote server. However this does not work as I still have to enter exit manually in the terminal for the SQL dumps to be retrieved from the remote host. I don't know why this is happening. This is what the script is trying to do:

//connect to remote server
ssh user@192.168.x.xxx
//retrieve SQL dumps

[code]...

Is there a way to connect to the remote host AND run the script's code on THAT remote host?

View 2 Replies View Related

General :: Root Of Previously Installed System Not Found Getting Message When Upgrading?

Jul 4, 2010

I am trying to Upgrade from Fedora 12 to Fedora 13 using Preupgrade. My system downloads the the Upgrade and tries to install it but returns a message "Root of the previous system not found". I would really like to fix this problem but dont know how.

View 1 Replies View Related

General :: Unable To Own Previously Saved /home Files On New External USB Drive

Nov 2, 2010

I have just had to reinstall my OS (Sabayon) onto a new and larger hard drive (dying old disk). I quickly saved all my old docs in /home on an external USB drive (formatted and then created an ext4 file system) before the swap and installation.

After getting the new disk running I connected the USB external disk. First I could not access the drive at all, but that seems to be fixed. Now I want to bring all my files back to my new /home folder but apparently they (especially the former MS Office .doc, .xls, etc files, not so much the OpenOffice files) are �read only� and I don't have permissions anymore. I am able to create directories on the external, and can move files back and forth, but don't seem to own many of them.Sabayon automatically mounted my external disk in /media/disk, rather than /mnt, so I've left that alone for now. After searching here and elsewhere for info, I tried a few things (below): For access I added a line to /etc/fstab:

Code:

/dev/sdb1 /media/disk ext4 noauto,rw 0 0

Here's what I've done to try and fix ownership already:

in /media I:

Code:

# chmod 775 disk

which gives output of:

Code:

media # ls -l
total 4
drwxrwxr-x 2 root root 4096 Nov 1 21:30 disk

[code]....

I'm not sure what the �total 4� refers to since there is only the one directory �disk� inside /media but I assume that's not part of this issue... Does adding umask=0 have anything to do with this, and if so where does that go?

View 7 Replies View Related







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