General :: Remote Webserver And Sshd_config File?

May 5, 2011

I wanted to add a user to have permission to login to our webserver. Foolishly I did not back this file up. The only thing I changed was the last part of the file which was:

# override default of no subsystems
AllowUsers chris acosentino
Subsystem sftp /usr/libexec/openssh/sftp-server
to
# override default of no subsystems
AllowUsers acosentino techmaster
Subsystem sftp /usr/libexec/openssh/sftp-server

Now I'm still connected with that terminal, but any other attempt to get into the webserver from either a new terminal or from winscp results in:ssh_exchange_identification:Connection closed by remote host.If I lose connection to this last terminal I guess I'll be screwed.

View 2 Replies


ADVERTISEMENT

Server :: Difference Between Ssh_config And Sshd_config File?

Feb 19, 2011

difference between ssh_config and sshd_config file?

View 6 Replies View Related

General :: /etc/ssh/sshd_config: Permission Denied?

Apr 5, 2010

i am trying to make my SSH-server more secure on my unbuntu server. And i want to do a little modifiing to the /etc/ssh/sshd_config folder. When i try to accsess it is says permission denied if i do sudo /etc/ssh/sshd_config it says command not found.

View 3 Replies View Related

General :: Can't Access /etc/sshd_config To Read Or Edit?

May 9, 2011

What is going on here? I can't access /etc/sshd_config to read or edit it, even as root. (Using debian-live 6.01)

root@debian:/etc# ls -l /etc/ssh*
total 132
-rw-r--r-- 1 root root 125749 2010-02-28 01:37 moduli
-rw-r--r-- 1 root root 1616 2010-02-28 01:37 ssh_config
-rw-r--r-- 1 root root 2453 2010-03-13 17:32 sshd_config

[Code]...

I also checked the permissions for the parent file /etc, and root has rwx. Is this something peculiar to the overlay file system used in debian-live, or just another unix gotcha?

View 7 Replies View Related

Server :: Accessing Internal Webserver From Public Webserver

Dec 18, 2009

Ok let's say I have Apache Webservers on 2 different machines within my network, I have http://outterABC.com setup at dyndns.org to point to my modem at home, and my router forwards Port 80 to the ServerA Machine (i.e. 192.168.0.3). I can access my webpage I setup for the Server A Machine.

But what I want to try and do is somehow access my ServerB machine's website that is on my same network. I tried something like this http://ServerB.outterABC.com and the apache page came up with something like the page wasn't available. I want to access the content of the ServerB website, but because I have only one router, i can only forward Port 80 site traffic to my ServerA machine's website. I'm sure it's a different syntax I should use but i'm just not sure what I should enter to bring up the apache root web page for the Server B website via http://outterABC.com

I tried setting up DNS A records on ServerA, but I don't think it will work with what i'm trying to do above.

View 1 Replies View Related

General :: Parse File From Remote Server To Caculate Count Of String Existence In That File?

Aug 30, 2010

I need to parse the file of same name which exist on different servers and calculate the count of string existed in both files.Say a file abc.log exist on 2 servers.I want to search for string "test" on both files and calculate the total count of search string's existence.For example if file abc.log on server 1 has string "test" 2 times
and file abc.log on server 2 has string "test" 4 times.then the output will beStringName : Countexampletest : 6 timesNote : I have created the password less connectivity using ssh-keygen.

View 2 Replies View Related

General :: Script To Ftp A File To Remote Machine - Log The Output To A File?

Feb 5, 2010

I am using below script to ftp a file to remote machine

Code:

#!/bin/bash
ftp -nv <<EOF
open ${SERVER}

[code]....

When I execute the above file its working fine and displaying output on to the screen. How can I log the output to a file?

View 7 Replies View Related

Fedora Servers :: Apache Webserver - Can't Paste File / Make It Possible?

Aug 4, 2009

I've tried to copy my files from Xamp httdocs in windows to /var/www/html,
but I can't paste the file, what should I do so I can paste the files ?
I have logged in as a root..

View 2 Replies View Related

Ubuntu Installation :: Getting A Phtml File While Accessing Webserver Through Firefox?

Apr 27, 2010

I'd like to ask a question about the apache webserver. I'm very sorry to post this topic here. It seems likely that this post is better off in server platforms and i didn't know where to post it.

Anyway, i have a problem with my apache webserver. Well, not so much however it is behaving strangely. When i installed the apache webserver and accessed the webroot (/var/www) through my webbrowser it said: It works!. Then i added a folder with an .php file to the root folder and get an error: access denied when i accessed it through my webbrowser. I'v tried to modify /var/www with chmod but this didn't work, however i do get a .phtml file offered as a download.

Also i have looked for a configuration file (httpd.conf) to alter the "DirectoryIndex" string. I did find the apache2.conf instead but it has no "DirectoryIndex" directive. I did google this problem but there is no straight answer to this.

View 5 Replies View Related

General :: Config File For New Remote?

Jun 3, 2011

i want to create new config file for remote using irrecordbut what are the steps please tell me about thathow to save config file?

View 4 Replies View Related

General :: Remote Copy File

Aug 3, 2010

I would like to use the command rcp to copy file from remote server ( linux ) to local pc , what is the command ?the remote server name is lnx_srv , the path is /tmp/ora_file1.txt , the linux login id is ora_usr , the .rhosts have released to ora_usr the localhost pc path is c:OraI read the help page of windows , tried the command rcp lnx_srv.ora_usr:/tmp/ora_file1.txt c:Ora , but not work , the error is "rsh: can't establish connection" , Can advise what is wrong ? what comamnd should i use ?

View 9 Replies View Related

General :: Use A File In Remote Server?

Apr 2, 2011

I have a file ( /tmp/my_file.txt) in local server , I have a script as below , it works fine.

for file in /tmp/my_file.txt ; do

done

Now , if the file ( /tmp/my_file.txt ) is in remote server , can advise what can i do ?

View 3 Replies View Related

General :: Putting A Remote Syslog Into Its Own File?

Aug 11, 2010

I have a Tomato router and it has the capability to have its logs go to a external server. syslog is the obvious choice for this. So I enabled remote logging on my linux server's syslogd (syslogd -r) and I can see all of the logs in /var/log/syslog. What I want to do is take everything that comes from the IP of my router (10.0.0.1) and divert it to its own file like /var/log/tomato to avoid polluting my syslog with external logs.

I can't find any examples of someone doing this. My only solution is to get a script together that strips out any line in /var/log/syslog with 10.0.0.1 in it and puts the line into /var/log/tomato and have the script run as a cron job, but that seems unnecessarily messy.

Unless someone knows that there is a solution, I'm 95% sure that syslog doesn't support this after reading more in-depth of the man page. So I need to migrate to syslog-ng or make a crazy script that runs with cron.

View 3 Replies View Related

General :: Copy A File From Remote Directory

Aug 4, 2011

How to copy a file from remote to local directory and vice versa using ftp bat script file in telnet.

View 1 Replies View Related

General :: Remote Access File Transfer

Feb 12, 2011

If I enable compression when I use ssh to run remote X11 applications on a local display.

View 1 Replies View Related

General :: Reading A File From A Remote Server?

Oct 15, 2010

I have an situation where I want to read a file into my script that lie on a remote server. I have ssh-keys set up just don't know how to do this.

View 7 Replies View Related

General :: Transfer File From Local Mac To Remote Machine

Aug 12, 2010

How do you transfer a file from a local Mac to a remote Linux machine

View 5 Replies View Related

General :: Grep Contents Of File On Remote Server?

Sep 24, 2010

I am attempting to grep the contents of a key file I have SCP'd to a remote server. I am able to cat it:

Code:
[bluethundr@LBSD2:~]$:ssh root@sum1 cat /root/id_rsa.pub
root@lcent01.summitnjhome.com's password:

[code]...

View 5 Replies View Related

General :: Remote File Copy Through Archiving Software ?

Oct 6, 2010

I need to back up a fold on a remote machine to my local box; the remote hd does not have enough space archive it, neither does my local box. I know there's a cantrip to pipe scp through gzip (or similar), but I don't remember the syntax.

View 1 Replies View Related

Debian :: Sshd_config : ListenAddress Not Working?

Apr 6, 2010

Install openssh so that I can access my desktop (192.168.1.100) from my laptop (192.168.1.200) using konqueror with "fish".Googled and read that the sshd_config should be updated to enhance security.Tried fiddling with sshd_config on the desktop and hit a brick wall.Before setting ListenAddress 192.168.1.200 in sshd_config, the laptop can access the desktop with problem.However, after setting it, the laptop is not able to access the desktop.

View 4 Replies View Related

OpenSUSE :: Set Up Sshd_config For Shared Key Only Access?

May 24, 2010

I know how to set up sshd_config for shared key only access. Is it possible however, to set up shared key only access for specific users. Example Users ABCD I want them to only be able to login with shared keys Users EFGH I want them to be able to use a shared key, or if that key gets lost, corrupted or whatever, EFGH can still use a password, keyboard-interactive. How would I go about doing that?

View 3 Replies View Related

Ubuntu Security :: Sshd_config: Set UsePAM - Yes Or No?

May 4, 2011

I'm using ssh to connect to a Ubuntu machine from a Windows machine. I am only using key-based ssh logins and not using passwords. (I followed this tutorial: [URL] My question is in my sshd_config file, should I set UsePAM to Yes or No? Security-wise, does it make a difference one way or the other, or can I just leave it set to "yes" (the default setting)?

View 1 Replies View Related

Software :: The #ssh_config And #sshd_config Files?

Jan 29, 2011

Using the Mandriva 2010.2 distro.While using RkHunter I have inadvertently deleted the following 2 files from #/etc/ssh/these are the #ssh_config and #sshd_config files.Have tried to re-install RkHunter to see if I can get
those files back, unfortunately to no avail.Could anyone tell me the correct procedure to re-install

View 2 Replies View Related

General :: Delete A File On A Remote Server Using Shell Scripting?

Jul 18, 2010

delete a file on a remote server using shell scripting.

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

General :: Bash Script That Read From File And Ping Remote Host

Feb 13, 2011

Q=What will this do?
A=This will read from /root/Desktop/iplist (or anywhere you want to put the list) after it reads the ip it will ping the ip two times. If the remote host is up then it will write the ip to a log. If the ping fails it will display it on the screen, write the ip to syslog so that you can do remote logging, and last it will send the ip by email to a user or a group of users.

Code:
#!/bin/bash
#wrote by Zach Underwood feb-12-2011
#test and wrote on centos 5.5 with sendmail
rm -f /root/Desktop/iplog #This will remove the good iplog
exec 9</root/Desktop/iplist #put full path the file where ip list is. Make sure that the ips are listed one per line.
while read -u9 ip
do
ping -c 2 $ip > /dev/null 2> /dev/null # ping and discard output
if [ $? -eq 0 ]; then # check the exit code
echo "$ip is up" >> /root/Desktop/iplog #write the ip of the hosts that are up
else
echo "$ip is down" # will show on the screen the ips that are not up
logger -p auth.notice "$ip is down" # will write the down host to syslog
echo "$ip is down" | mail -v -s alert user@anydomain.com > /dev/null 2> /dev/null #will send mail users about host down
fi
done

View 3 Replies View Related

General :: Why Dolphin Makes Local Copy When Play A Remote .avi File

Oct 15, 2010

i am using dolphin 1.5 in kde 4.5.2. whenever i try to access movie file from remote samba server. dolphin copies the movie file to somewhere in local hard disk. so, i have to wait until a big file transferring complete. i know that it happens when i open .avi using mplayer. if i open the same remote file with kmplayer, it will player immediately instead of making local copy first. however, kmplayer is very slow and sounds and video stream breaking up, (i am sorry i do not know right english expression for this) i suppose this is not related to mplayer configuration. this seems to be dolphin problem. can i make dolphin to stop copying samba share to local disk and play instantly? there is a video in videos. it is comparing how dolphin and nautilus act differently when i play remote samba share movies.

View 3 Replies View Related

Networking :: Unable To Change The Ssh Port Access Is It From /etc/sshd_config?

Jan 27, 2010

I have a WRTG54S Linksys router and Fedora 11 on my Asus EeePC and I would like to be able to access my Fedora remotely via ssh however I'm not sure which info and were do I need to change it in my router, also I want to be able to change the ssh port access is it from /etc/sshd_config ? My internet connection at home is via cable modem and with a connection that is always on. (no dialer)

View 2 Replies View Related

General :: Remote Mount Of Nfs Gives Permission Denied Error - FUSE File System?

Apr 6, 2011

I have created a new file system (fuse) which works fine and is mounted in the local host. I want to be able to mount it from another host. I added it to /ect/exports: /mnt/ltfs *(rw,sync) And restarted nfs. Then from my client host I type:

mount -t nfs myHostName:/mnt/ltfs /mnt/data1

Where /mnt/ltfs is on my local host and /mnt/data1 is on the client host. Note that this is a "FUSE" file system so here is it's local "mount" output: ltfs on /mnt/ltfs type fuse (rw,nosuid,nodev,default_permissions,allow_other) Note thet this is of type "ltfs" but I am told that it should work like its a nfs. ltfs uses fuse under the covers.

View 1 Replies View Related

Fedora Servers :: Configure Openssh, /etc/sshd_config On A New Installation Of Core 14?

Nov 11, 2010

How to configure openssh, /etc/sshd_config on a new installation of Fedora Core 14? [since tt does not work right out of the box, I cannot ssh into it]

View 2 Replies View Related







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