Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cs161
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
recolic-hust
cs161
Commits
ca0daf52
There was an error fetching the commit references. Please try again later.
Unverified
Commit
ca0daf52
authored
6 years ago
by
Recolic Keghart
Browse files
Options
Downloads
Patches
Plain Diff
proj1 finally done
parent
c2082f0b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
proj1/ssh.sh
+5
-2
5 additions, 2 deletions
proj1/ssh.sh
with
5 additions
and
2 deletions
proj1/ssh.sh
+
5
−
2
View file @
ca0daf52
...
@@ -2,8 +2,11 @@
...
@@ -2,8 +2,11 @@
if
[[
$1
==
remote
]]
;
then
if
[[
$1
==
remote
]]
;
then
echo
'Connecting ucb cs161 autograde machine...'
echo
'Connecting ucb cs161 autograde machine...'
u
=
atw
u
=
atw
echo
ssh
-t
cs161-
$u
@hive
$((
36
#${u:2}%26+1)).cs.berkeley.edu \~cs161/proj1/start
ssh
-t
cs161-
$u
@hive1.cs.berkeley.edu
\~
cs161/proj1/start
ssh
-
t cs161-
$u
@hive
$((
36
#${u:2}%26+1)).cs.berkeley.edu \~cs161/proj1/start
elif
[[
$1
==
make-submit
]]
;
then
echo
'Pull solution from ucb cs161 autograde machine...'
u
=
atw
ssh cs161-
$u
@hive1.cs.berkeley.edu
\~
cs161/proj1/make-submission
>
proj1-subm.zip
else
else
echo
'Connecting localhost...'
echo
'Connecting localhost...'
#sshpass -p r4e8kWpeFC ssh -o PreferredAuthentications=password -o PubkeyAuthentication=no vsftpd@localhost -p 16161
#sshpass -p r4e8kWpeFC ssh -o PreferredAuthentications=password -o PubkeyAuthentication=no vsftpd@localhost -p 16161
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment