08-21-2006
Remotely accessing a server
Ok, so I'm a total beginner when it come to unix shells, but my friends and I are starting to get into it.
It turns out that I have an extra computer lying around and I want to set it up as a server se we can run shell commands on it.
Does anyone know of any guides on how to set up the server? Again, I'm pretty new to all of this. Any help is appreciated. Thanks!
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi there--I think this is more of a Windows question, but I think many of you might be able to help me out:
I have a UNIX web server and a Windows machine. I'm trying to script the following tasks so that they can be run from the Windows machine (via a
batch file):
1. Shutdown web services... (5 Replies)
Discussion started by: sohungry73
5 Replies
2. UNIX for Dummies Questions & Answers
I am trying to access my school's unix server. On one of the tutorials they passed out there were instructions on how to dial a modem to connect or something but I think i should be able to connect to it through my school's internet connection. All of my school's computers has access to a unix... (1 Reply)
Discussion started by: UMiami10
1 Replies
3. Shell Programming and Scripting
Hi,
I am trying to run the below command in perl but when the perl script is executed it prompts a error message saying " ssh: <username>: Name or service not known ". Not able to understand this as this command runs perfectly on the server prompt.
` ssh <username>@pus4026dev df -k >>... (2 Replies)
Discussion started by: be2sp1
2 Replies
4. Shell Programming and Scripting
Hi guys,
I am trying to install apache server onto a remote machine. I file transferred the .gz file and extracted it on the remote server using shell scripts.
Then I used the make and make install commands. Everything worked fine until now. I know that i had to change the httpd.conf... (2 Replies)
Discussion started by: tadi18
2 Replies
5. UNIX for Advanced & Expert Users
I need some help in emergency. I want to add some software package from Solaris 10 CD remotely to UNIX Sparc machine. I can remotely access into the machine. Question is: how do I insert Solaris 10 CD in my laptop, then mount to UNIX machine remotely and add software package. Please give me the... (7 Replies)
Discussion started by: duke0001
7 Replies
6. Shell Programming and Scripting
Hello guys,
i have a scenario that i need to run some commands on a unix machine and them connect on a windows server machine stop some services and them back to the Unix machine do another commands..
There is a way to do that with shell script?
tks (1 Reply)
Discussion started by: paddock
1 Replies
7. HP-UX
Hi
please suggest .. how can i get my original user from which logged in to another server.
my main current login is
$whoami
nitin
ssh nit01@n01
i m going (redirected)to log in below path..
nit01@n01:/home/n01 -> pwd
/home/n01
nit01@n01:/home/n01 ->
on this server i want get... (1 Reply)
Discussion started by: nitindreamz
1 Replies
8. UNIX for Dummies Questions & Answers
Hi everyone-
I'm relatively new to UNIX (Primarily Oracle background), wondering if anyone can help me.
I did not configure Oracle Database Control (Web-Based admin interface) on the Database Server (HP-UX), however it is running and the URL is configured with an internal IP, which users have... (4 Replies)
Discussion started by: campbellg
4 Replies
9. Solaris
Dear all,
We have a Solaris Server at other location. Can we access the Server from remote ....Any software is needed for this ....pl help.
Rgds
Rj (7 Replies)
Discussion started by: jegaraman
7 Replies
10. Shell Programming and Scripting
Hi,
I am trying to start Weblogic Admin server using start-up script (./startWeblogic.sh) from a remote host using a different user. The server starts fine but prompt is stuck, it does not return
Background: We have multiple admin servers in different environment and the requirement is all... (4 Replies)
Discussion started by: bhaskar_m
4 Replies
LEARN ABOUT MOJAVE
git-shell
GIT-SHELL(1) Git Manual GIT-SHELL(1)
NAME
git-shell - Restricted login shell for Git-only SSH access
SYNOPSIS
chsh -s $(command -v git-shell) <user>
git clone <user>@localhost:/path/to/repo.git
ssh <user>@localhost
DESCRIPTION
This is a login shell for SSH accounts to provide restricted Git access. It permits execution only of server-side Git commands implementing
the pull/push functionality, plus custom commands present in a subdirectory named git-shell-commands in the user's home directory.
COMMANDS
git shell accepts the following commands after the -c option:
git receive-pack <argument>, git upload-pack <argument>, git upload-archive <argument>
Call the corresponding server-side command to support the client's git push, git fetch, or git archive --remote request.
cvs server
Imitate a CVS server. See git-cvsserver(1).
If a ~/git-shell-commands directory is present, git shell will also handle other, custom commands by running "git-shell-commands/<command>
<arguments>" from the user's home directory.
INTERACTIVE USE
By default, the commands above can be executed only with the -c option; the shell is not interactive.
If a ~/git-shell-commands directory is present, git shell can also be run interactively (with no arguments). If a help command is present
in the git-shell-commands directory, it is run to provide the user with an overview of allowed actions. Then a "git> " prompt is presented
at which one can enter any of the commands from the git-shell-commands directory, or exit to close the connection.
Generally this mode is used as an administrative interface to allow users to list repositories they have access to, create, delete, or
rename repositories, or change repository descriptions and permissions.
If a no-interactive-login command exists, then it is run and the interactive shell is aborted.
EXAMPLE
To disable interactive logins, displaying a greeting instead:
$ chsh -s /usr/bin/git-shell
$ mkdir $HOME/git-shell-commands
$ cat >$HOME/git-shell-commands/no-interactive-login <<EOF
#!/bin/sh
printf '%s
' "Hi $USER! You've successfully authenticated, but I do not"
printf '%s
' "provide interactive shell access."
exit 128
EOF
$ chmod +x $HOME/git-shell-commands/no-interactive-login
To enable git-cvsserver access (which should generally have the no-interactive-login example above as a prerequisite, as creating the
git-shell-commands directory allows interactive logins):
$ cat >$HOME/git-shell-commands/cvs <<EOF
if ! test $# = 1 && test "$1" = "server"
then
echo >&2 "git-cvsserver only handles "server""
exit 1
fi
exec git cvsserver server
EOF
$ chmod +x $HOME/git-shell-commands/cvs
SEE ALSO
ssh(1), git-daemon(1), contrib/git-shell-commands/README
GIT
Part of the git(1) suite
Git 2.17.1 10/05/2018 GIT-SHELL(1)